Public Member Functions | |
RemoteThreadsClient (String className) throws RemoteThreadsException | |
RemoteThreadsClient (int pid) throws RemoteThreadsException | |
RemoteThreadsClient (InetAddress remoteHost) throws RemoteThreadsException | |
RemoteThreadsClient (InetAddress remoteHost, int remotePort) throws RemoteThreadsException | |
boolean | connect () |
void | close () throws RemoteThreadsException |
RemoteThreadsMBean | getMBean () throws RemoteThreadsException |
Static Public Attributes | |
final int | RMI_DEFAULT_PORT = 9999 |
Private Member Functions | |
int | getRemotePID (String className) throws IOException |
void | getServiceURL (int pid) throws IOException, AgentLoadException, RemoteThreadsException, AttachNotSupportedException, AgentInitializationException |
void | getServiceURL (InetAddress host, int port) throws MalformedURLException |
Private Attributes | |
JMXServiceURL | remoteURL = null |
MBeanServerConnection | remote = null |
RemoteThreadsMBean | rtmb = null |
JMXConnector | connector = null |
Static Private Attributes | |
final String | LOCAL_CONNECTOR_ADDRESS |
For further details on the activation of the RMI connector, you can see http://java.sun.com/docs/books/tutorial/jmx/remote/jconsole.html
|
Gets a new
|
|
Gets a new
|
|
Gets a new
|
|
Gets a new
|
|
Closes the connection with the remote MBeanServer.
|
|
Connects the object instance to the remote JVM agent and gets a direct connection with the MBeanServer in order to be able to get the remote MBean.
|
|
Returns an object representing the MBean registered on the remote JVM agent. If the MBean has not been registered, then it is registered and then retreived.
|
|
|
|
|
|
|
|
|
|
Initial value: Property name for getting a local JMX connector |
|
|
|
|
|
Default port used by the RMI client-side connector |
|
|