public class CommandHandler
extends java.lang.Object
| Constructor and Description |
|---|
CommandHandler(java.lang.String host) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<javax.management.ObjectName> |
getAllMBeanNames(java.lang.String serverId) |
java.util.ArrayList<java.lang.String> |
getAllMBeanServerId() |
java.lang.String[] |
getDomains(java.lang.String serverId)
Get all domains from mbean server whose id is serverId
|
javax.management.MBeanInfo |
getMBeanInfo(java.lang.String serverId,
javax.management.ObjectName name) |
void |
printAllMBeanInfo(java.lang.String serverId) |
void |
printAllMBeanNames(java.lang.String serverId) |
void |
printAllMBeanServerIds() |
void |
printDomains(java.lang.String serverId) |
void |
printJndiContext() |
void |
printVmList() |
public CommandHandler(java.lang.String host)
throws java.rmi.RemoteException,
java.rmi.NotBoundException
java.rmi.RemoteExceptionjava.rmi.NotBoundExceptionpublic void printVmList()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic java.util.ArrayList<java.lang.String> getAllMBeanServerId()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionjava.lang.management.ManagementFactorypublic java.util.Set<javax.management.ObjectName> getAllMBeanNames(java.lang.String serverId)
throws java.rmi.RemoteException
serverId - mbean server idjava.rmi.RemoteExceptionpublic java.lang.String[] getDomains(java.lang.String serverId)
throws java.rmi.RemoteException
serverId - mbean server idjava.rmi.RemoteExceptionpublic javax.management.MBeanInfo getMBeanInfo(java.lang.String serverId,
javax.management.ObjectName name)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void printAllMBeanServerIds()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void printAllMBeanNames(java.lang.String serverId)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void printDomains(java.lang.String serverId)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void printAllMBeanInfo(java.lang.String serverId)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void printJndiContext()
throws java.rmi.RemoteException
java.rmi.RemoteException