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

org.gridkit.nimble.probe.jmx.JmxLocator Maven / Gradle / Ivy

package org.gridkit.nimble.probe.jmx;

import java.io.Serializable;
import java.util.Collection;

import javax.management.MBeanServerConnection;

import org.gridkit.lab.monitoring.probe.TargetLocator;

public class JmxLocator implements TargetLocator, Serializable {

	private static final long serialVersionUID = 20121106L;
	
	private final MBeanConnector connector;
	
	public JmxLocator(MBeanConnector connector) {
		this.connector = connector;
	}

	@Override
	public Collection findTargets() {
		return connector.connect();
	}
	
	@Override
	public String toString() {
		return connector == null ? "null" : connector.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy