All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.instrumentation.jmx.engine.DetectionStatus Maven / Gradle / Ivy

/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.instrumentation.jmx.engine;

import java.util.Collection;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;

/**
 * A class encapsulating a set of ObjectNames and the MBeanServer that recognized them. Objects of
 * this class are immutable.
 */
class DetectionStatus {

  private final MBeanServerConnection connection;
  private final Collection objectNames;

  DetectionStatus(MBeanServerConnection connection, Collection objectNames) {
    this.connection = connection;
    this.objectNames = objectNames;
  }

  MBeanServerConnection getConnection() {
    return connection;
  }

  Collection getObjectNames() {
    return objectNames;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy