Methods Summary |
---|
public void | closeMQMBeanServerConnection()
try {
if (connector != null) {
connector.close();
}
} catch (IOException e) {
ConnectorRuntimeException cre = new ConnectorRuntimeException(e.getMessage());
cre.initCause(e);
throw cre;
}
|
public java.lang.String | getASInstanceName()
return this.asInstanceName;
|
public java.lang.String | getBrokerInstanceName()
return this.brokerInstanceName;
|
public java.lang.String | getBrokerType()
return this.brokerType;
|
public java.util.Map | getJMXConnectorEnv()
return this.jmxConnectorEnv;
|
public java.lang.String | getJMXServiceURL()
_logger.log(Level.FINE,"MQJMXConnectorInfo :: JMXServiceURL is " + this.jmxServiceURL);
return this.jmxServiceURL;
|
public javax.management.MBeanServerConnection | getMQMBeanServerConnection()Returns an MBeanServerConnection representing the MQ broker instance's MBean
server.
try {
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE,
"creating MBeanServerConnection to MQ JMXServer with "+getJMXServiceURL());
}
JMXServiceURL jmxServiceURL = new JMXServiceURL(getJMXServiceURL());
connector = JMXConnectorFactory.connect(jmxServiceURL, this.jmxConnectorEnv);
//XXX: Do we need to pass in a Subject?
MBeanServerConnection mbsc = connector.getMBeanServerConnection();
return mbsc;
} catch (Exception e) {
e.printStackTrace();
ConnectorRuntimeException cre = new ConnectorRuntimeException(e.getMessage());
cre.initCause(e);
throw cre;
}
|