|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanServerConnection.java
Method Summary | |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name)
Instantiates and registers an MBean in the MBean server. |
java.lang.Object |
getAttribute(javax.management.ObjectName name,
java.lang.String attribute)
Gets the value of a specific attribute of a named MBean. |
javax.management.AttributeList |
getAttributes(javax.management.ObjectName name,
java.lang.String[] attributes)
Enables the values of several attributes of a named MBean. |
java.lang.String |
getDefaultDomain()
Returns the default domain used for naming the MBean. |
java.lang.Integer |
getMBeanCount()
Returns the number of MBeans registered in the MBean server. |
javax.management.MBeanInfo |
getMBeanInfo(javax.management.ObjectName name)
This method discovers the attributes and operations that an MBean exposes for management. |
javax.management.ObjectInstance |
getObjectInstance(javax.management.ObjectName name)
Gets the ObjectInstance for a given MBean registered with the MBean server. |
java.lang.Object |
invoke(javax.management.ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
Invokes an operation on an MBean. |
boolean |
isInstanceOf(javax.management.ObjectName name,
java.lang.String className)
Returns true if the MBean specified is an instance of the specified class, false otherwise. |
boolean |
isRegistered(javax.management.ObjectName name)
Checks whether an MBean, identified by its object name, is already registered with the MBean server. |
java.util.Set |
queryMBeans(javax.management.ObjectName name,
javax.management.QueryExp query)
Gets MBeans controlled by the MBean server. |
java.util.Set |
queryNames(javax.management.ObjectName name,
javax.management.QueryExp query)
Gets the names of MBeans controlled by the MBean server. |
void |
setAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
Sets the value of a specific attribute of a named MBean. |
javax.management.AttributeList |
setAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
Sets the values of several attributes of a named MBean. |
void |
unregisterMBean(javax.management.ObjectName name)
Links the connection to an MBeanServer instance. |
Method Detail |
public javax.management.ObjectInstance createMBean(java.lang.String className, javax.management.ObjectName name) throws java.rmi.RemoteException
className
- java.lang.Stringname
- javax.management.ObjectNamepublic java.lang.Object getAttribute(javax.management.ObjectName name, java.lang.String attribute) throws java.rmi.RemoteException
name
- javax.management.ObjectNameattribute
- java.lang.Stringpublic javax.management.AttributeList getAttributes(javax.management.ObjectName name, java.lang.String[] attributes) throws java.rmi.RemoteException
name
- javax.management.ObjectNameattributes
- java.lang.String[]public java.lang.String getDefaultDomain() throws java.rmi.RemoteException
public java.lang.Integer getMBeanCount() throws java.rmi.RemoteException
public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name) throws java.rmi.RemoteException
name
- javax.management.ObjectNamepublic javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName name) throws java.rmi.RemoteException
name
- javax.management.ObjectNamepublic java.lang.Object invoke(javax.management.ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature) throws java.rmi.RemoteException
name
- javax.management.ObjectNameoperationName
- java.lang.Stringparams
- java.lang.Object[]signature
- java.lang.String[]public boolean isInstanceOf(javax.management.ObjectName name, java.lang.String className) throws java.rmi.RemoteException
name
- javax.management.ObjectNameclassName
- java.lang.Stringpublic boolean isRegistered(javax.management.ObjectName name) throws java.rmi.RemoteException
name
- javax.management.ObjectNamepublic java.util.Set queryMBeans(javax.management.ObjectName name, javax.management.QueryExp query) throws java.rmi.RemoteException
name
- javax.management.ObjectNamequery
- javax.management.QueryExppublic java.util.Set queryNames(javax.management.ObjectName name, javax.management.QueryExp query) throws java.rmi.RemoteException
name
- javax.management.ObjectNamequery
- javax.management.QueryExppublic void setAttribute(javax.management.ObjectName name, javax.management.Attribute attribute) throws java.rmi.RemoteException
name
- javax.management.ObjectNameattribute
- javax.management.Attributepublic javax.management.AttributeList setAttributes(javax.management.ObjectName name, javax.management.AttributeList attributes) throws java.rmi.RemoteException
name
- javax.management.ObjectNameattributes
- javax.management.AttributeListpublic void unregisterMBean(javax.management.ObjectName name) throws java.rmi.RemoteException
name
- javax.management.ObjectName
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |