Interface JmxServerConnector
-
- All Known Implementing Classes:
DefaultJmxConnector,PlatformMBeanServerConnector
public interface JmxServerConnectorThe JmxServerConnector implements the logic on how to connect to a certain JMX Server (MBeanServer).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJmxServerConnector.Parameters
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_OPENNMS_JMX_PORTstatic StringJMX_PORT_SYSTEM_PROPERTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JmxServerConnectionWrappercreateConnection(InetAddress ipAddress, Map<String,String> propertiesMap)Establishes a JMX connection (MBeanServerConnection) to the givenipAddressusing required properties from the givenpropertiesMap.
-
-
-
Field Detail
-
DEFAULT_OPENNMS_JMX_PORT
static final String DEFAULT_OPENNMS_JMX_PORT
- See Also:
- Constant Field Values
-
JMX_PORT_SYSTEM_PROPERTY
static final String JMX_PORT_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createConnection
JmxServerConnectionWrapper createConnection(InetAddress ipAddress, Map<String,String> propertiesMap) throws JmxServerConnectionException
Establishes a JMX connection (
The createdMBeanServerConnection) to the givenipAddressusing required properties from the givenpropertiesMap.MBeanServerConnectionis wrapped by theJmxServerConnectionWrapper.- Parameters:
ipAddress- The IP address to connect to.propertiesMap- Properties to use to establish the connection (e.g. timeout, user, password, etc.)- Returns:
- The wrapped
MBeanServerConnection. May return null, but should throw aJmxServerConnectionExceptioninstead. - Throws:
JmxServerConnectionException- If a JMX connection to the givenipAddresscould not be established.
-
-