/// <summary> /// Opens a new connection to a remote JMX server. Rethrows any encountered exceptions. /// </summary> public void OpenConnection() { LastConnectionAttempt = DateTime.Now; Connector = JMXConnectorFactory.newJMXConnector(ConnectionInfo.GetJmxServiceUrl(), environment: null); Connector.connect(); Log.Debug(String.Format("Opened connection to JMX server at {0}", ConnectionInfo)); }
public JmxConnectorProxy(JmxConnectionInfo connectionInfo) { ConnectionInfo = connectionInfo; Connector = JMXConnectorFactory.newJMXConnector(ConnectionInfo.GetJmxServiceUrl(), null); LastConnectionAttempt = DateTime.MinValue; }