|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.panoptes.model.node.Node | +--net.sf.panoptes.model.component.Component | +--net.sf.panoptes.module.jmx.MBeanComponent
MBeanComponent.java Wraps an MBean and implements helper methods. Original code by Stefan Groschupf(sg@media-style.com).
Field Summary |
Fields inherited from class net.sf.panoptes.model.node.Node |
ICON_BROKEN_LINK, ICON_CONNECTION, ICON_CONNECTIONS_FOLDER, ICON_DATASOURCE, ICON_DOMAIN, ICON_ERROR, ICON_FOLDER, ICON_INFO, ICON_LOG, ICON_LOG_FOLDER, ICON_MBEAN, ICON_QUERY_FOLDER, ICON_SERVER, ICON_SERVICE, ICON_SESSION, ICON_USER, ICON_WARNING |
Constructor Summary | |
MBeanComponent()
Constructor for MBeanComponent. |
Method Summary | |
int |
countAttributes()
Method countAttributes. |
javax.management.Attribute[] |
getAttributes()
Method getAttributes. |
java.lang.Object |
getAttributeValue(java.lang.String attributeName)
Method getAttrbute. |
NodeDescriptor |
getConfigDescriptor()
|
java.lang.String[] |
getConfiguratorScripts()
|
java.lang.Object |
getEditableValue()
|
org.eclipse.swt.graphics.Image |
getIcon()
|
javax.management.ObjectName |
getObjectName()
|
Operation[] |
getOperations()
Method getOperations. |
MBeanServerComponent |
getServer()
|
void |
init()
Called when the Component has had all it's attributes set and should be ready for initialization. |
void |
invokeWithoutParams(java.lang.String operation)
Simple method to test invocation from Jelly script. |
void |
refresh()
Method refresh. |
void |
setAttrbuteValue(java.lang.String attributeName,
java.lang.Object value)
|
void |
setMBeanInfo(javax.management.MBeanInfo info)
Method setMBeanInfo. |
protected void |
setMBeanName(javax.management.ObjectName name)
Sets the ObjectName of the MBean this component wraps.. |
void |
setMBeanServerComponent(MBeanServerComponent server)
|
java.lang.String |
toString()
|
Methods inherited from class net.sf.panoptes.model.component.Component |
acceptsChildren, getChildren, getComponentName, getComponentRegistry, setComponentName, setComponentRegistry |
Methods inherited from class net.sf.panoptes.model.node.Node |
addUpdateListener, createImage, notifyListeners, removeUpdateListener, setConfigDescriptor, setIcon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MBeanComponent()
Method Detail |
protected void setMBeanName(javax.management.ObjectName name)
ObjectName
of the MBean this component wraps..
name
- public void setMBeanServerComponent(MBeanServerComponent server)
public javax.management.Attribute[] getAttributes()
public Operation[] getOperations()
public void setMBeanInfo(javax.management.MBeanInfo info)
info
- public MBeanServerComponent getServer()
public void invokeWithoutParams(java.lang.String operation) throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException, java.io.IOException
operation
- name of the operation to invoke
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
java.io.IOException
public void refresh()
public javax.management.ObjectName getObjectName()
public java.lang.String toString()
toString
in class java.lang.Object
public int countAttributes()
public java.lang.Object getEditableValue()
org.eclipse.ui.views.properties.IPropertySource#getEditableValue()
public java.lang.Object getAttributeValue(java.lang.String attributeName)
public void setAttrbuteValue(java.lang.String attributeName, java.lang.Object value)
public org.eclipse.swt.graphics.Image getIcon()
getIcon
in class Node
com.gllt.troodon.console.Node#getIconName()
public NodeDescriptor getConfigDescriptor()
getConfigDescriptor
in class Node
com.gllt.troodon.console.Node#getConfigDescriptor()
public java.lang.String[] getConfiguratorScripts()
getConfiguratorScripts
in class Component
public void init()
Component
init
in class Component
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |