net.sf.panoptes.model.component.jmx
Class MBeanComponent

java.lang.Object
  |
  +--net.sf.panoptes.model.component.Component
        |
        +--net.sf.panoptes.model.component.jmx.MBeanComponent
All Implemented Interfaces:
IComponent, INode

public class MBeanComponent
extends Component

MBeanComponent.java Wraps an MBean and implements helper methods. Original code by Stefan Groschupf(sg@media-style.com).

Version:
0.1
Author:
Dag Liodden

Field Summary
 
Fields inherited from interface net.sf.panoptes.model.node.INode
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(javax.management.MBeanInfo beanInfo, MBeanServerComponent server, javax.management.ObjectName name)
          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.Object getEditableValue()
           
 java.lang.String getIconName()
           
 javax.management.ObjectName getObjectName()
           
 Operation[] getOperations()
          Method getOperations.
 MBeanServerComponent getServer()
           
 void refresh()
          Method refresh.
 void setAttrbuteValue(java.lang.String attributeName, java.lang.Object value)
           
 void setMBeanInfo(javax.management.MBeanInfo info)
          Method setMBeanInfo.
 java.lang.String toString()
           
 
Methods inherited from class net.sf.panoptes.model.component.Component
acceptsChildren, getChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MBeanComponent

public MBeanComponent(javax.management.MBeanInfo beanInfo,
                      MBeanServerComponent server,
                      javax.management.ObjectName name)
Constructor for MBeanComponent.

Method Detail

getAttributes

public javax.management.Attribute[] getAttributes()
Method getAttributes.

Returns:
Attribute[]

getOperations

public Operation[] getOperations()
Method getOperations.


setMBeanInfo

public void setMBeanInfo(javax.management.MBeanInfo info)
Method setMBeanInfo.

Parameters:
info -

getServer

public MBeanServerComponent getServer()

refresh

public void refresh()
Method refresh.


getObjectName

public javax.management.ObjectName getObjectName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

countAttributes

public int countAttributes()
Method countAttributes.

Returns:
int

getEditableValue

public java.lang.Object getEditableValue()
See Also:
org.eclipse.ui.views.properties.IPropertySource#getEditableValue()

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String attributeName)
Method getAttrbute.

Returns:
String

setAttrbuteValue

public void setAttrbuteValue(java.lang.String attributeName,
                             java.lang.Object value)

getIconName

public java.lang.String getIconName()
See Also:
com.gllt.troodon.console.INode#getIconName()

getConfigDescriptor

public NodeDescriptor getConfigDescriptor()
See Also:
com.gllt.troodon.console.INode#getConfigDescriptor()


Copyright © 2003 . All Rights Reserved.