|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.savarese.unicorn.ui.AbstractObjectPanelModel<javax.management.ObjectName>
org.savarese.unicorn.ui.MBeanPanelModel
public class MBeanPanelModel
An ObjectPanelModel implementation for JMX MBeans.
| Field Summary |
|---|
| Fields inherited from class org.savarese.unicorn.ui.AbstractObjectPanelModel |
|---|
_listeners_, _object_ |
| Constructor Summary | |
|---|---|
MBeanPanelModel(javax.management.ObjectName mbean,
javax.management.MBeanServerConnection conn)
Instantiates an MBeanPanelModel that wraps the provided MBean, accessed via the provided MBeanServerConnection. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attribute)
Retrieves a named attribute from the adapted object. |
javax.management.MBeanInfo |
getObjectInfo()
Returns a description of the object. |
java.lang.Object |
invoke(java.lang.String operation,
java.lang.Object[] params,
java.lang.Class[] types,
java.lang.String[] signature)
Invokes an operation of the adapted object and returns its result, if any. |
boolean |
isValid()
Determines if the model is in a valid state. |
void |
setAttribute(java.lang.String attribute,
java.lang.Object value)
Sets the value of a named attribute of the adapted object. |
void |
setConnection(javax.management.MBeanServerConnection conn)
Sets the MBeanServerConnection via which the MBean can be accessed. |
void |
setObject(javax.management.ObjectName mbean)
Sets the object to be adapted to the interface. |
| Methods inherited from class org.savarese.unicorn.ui.AbstractObjectPanelModel |
|---|
_notifyListeners_, addObjectPanelModelListener, getObject, getObjectName, removeObjectPanelModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanPanelModel(javax.management.ObjectName mbean,
javax.management.MBeanServerConnection conn)
mbean - The ObjectName of the MBean to wrap.conn - The MBeanServerConnection via which the MBean can be accessed.| Method Detail |
|---|
public void setAttribute(java.lang.String attribute,
java.lang.Object value)
throws javax.management.JMException,
java.io.IOException
ObjectPanelModel
attribute - The name of the attribute to set.value - The new value of the attribute.
javax.management.AttributeNotFoundException - If the attribute does not exist.
javax.management.JMException
java.io.IOException
public java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.JMException,
java.io.IOException
ObjectPanelModel
attribute - The name of the attribute to retrieve.
javax.management.AttributeNotFoundException - If the attribute does not exist.
javax.management.JMException
java.io.IOExceptionpublic void setConnection(javax.management.MBeanServerConnection conn)
public void setObject(javax.management.ObjectName mbean)
ObjectPanelModel
setObject in interface ObjectPanelModel<javax.management.ObjectName>setObject in class AbstractObjectPanelModel<javax.management.ObjectName>mbean - The object to be adapted.
public java.lang.Object invoke(java.lang.String operation,
java.lang.Object[] params,
java.lang.Class[] types,
java.lang.String[] signature)
throws javax.management.JMException,
java.io.IOException
ObjectPanelModel
operation - The name of the operation to invoke.params - An array of parameters for the operation.types - An array containing the types of the operation parameters.signature - A string representation of the types (i.e., the
fully qualified class names) of the operation parameters.
javax.management.JMException
java.io.IOExceptionpublic javax.management.MBeanInfo getObjectInfo()
ObjectPanelModel
public boolean isValid()
ObjectPanelModel
isValid in interface ObjectPanelModel<javax.management.ObjectName>isValid in class AbstractObjectPanelModel<javax.management.ObjectName>
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||