public class RemoteJMXServer extends Object
Constructor and Description |
---|
RemoteJMXServer() |
Modifier and Type | Method and Description |
---|---|
void |
attachToTempQueue(String tempQueueName) |
void |
disconnect()
Disconnects from MBeanServer
|
void |
initialize(String jmxDomain,
String remoteJMXServerHostname,
String remoteJMXServerPort)
Creates a connection to an MBean Server identified by
remoteJMXServerHostName and remoteJMXServerPort |
boolean |
isClientReplyQueueAvailable(String queueName)
Checks if a given queue name exists in remote MBeanServer's registry.
|
boolean |
isInitialized() |
boolean |
isServerAvailable()
Tries to fetch total number of MBeans in the MBeanServer.
|
static void |
main(String[] args) |
String |
normalize(String destinationName)
Replaces ':' with '_'.
|
public boolean isInitialized()
public void initialize(String jmxDomain, String remoteJMXServerHostname, String remoteJMXServerPort) throws Exception
remoteJMXServerHostName and remoteJMXServerPort
remoteJMXServerHostName
- - MBeanServer host nameremoteJMXServerPort
- - MBeanServer portException
public void disconnect()
public boolean isServerAvailable()
public void attachToTempQueue(String tempQueueName) throws Exception
Exception
public boolean isClientReplyQueueAvailable(String queueName)
queueName
- - queue to lookup in the MBeanServerpublic String normalize(String destinationName)
destinationName
- public static void main(String[] args)
Copyright © 2016. All rights reserved.