net.sf.panoptes.module.jmx
Class MBeanServerComponent

java.lang.Object
  |
  +--net.sf.panoptes.model.node.Node
        |
        +--net.sf.panoptes.model.component.Component
              |
              +--net.sf.panoptes.model.component.ComponentQuery
                    |
                    +--net.sf.panoptes.module.jmx.MBeanServerComponent
Direct Known Subclasses:
DetectedMBeanServerComponent

public class MBeanServerComponent
extends ComponentQuery

MBeanServerComponent.java Wraps a JMX server connector.

Version:
0.1
Author:
Dag Liodden

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
MBeanServerComponent()
          Constructor for MBeanServerComponent.
 
Method Summary
 boolean acceptsChildren()
           
 void connect()
           
 NodeDescriptor getConfigDescriptor()
           
 javax.management.MBeanServerConnection getConnector()
           
 java.lang.String getHost()
          Returns the host.
 org.eclipse.swt.graphics.Image getIcon()
           
 java.lang.String getName()
          Returns the name.
 int getPort()
          Returns the port.
 javax.management.MBeanServerConnection getServer()
          Returns the server.
 void init()
          Called when the Component has had all it's attributes set and should be ready for initialization.
 java.lang.Object invoke(javax.management.ObjectName objectName, java.lang.String operation, java.lang.Object[] params, java.lang.String[] paramClasses)
           
 void refresh()
           
 void setHost(java.lang.String host)
          Sets the host.
 void setName(java.lang.String name)
          Sets the name.
 void setPort(int port)
          Sets the port.
protected  void setServer(javax.management.MBeanServerConnection connection)
           
 
Methods inherited from class net.sf.panoptes.model.component.ComponentQuery
getChildren, getConfiguratorScripts, getId, getQuery, setConfigDescriptor, setIcon, setQuery
 
Methods inherited from class net.sf.panoptes.model.component.Component
getComponentName, getComponentRegistry, setComponentName, setComponentRegistry
 
Methods inherited from class net.sf.panoptes.model.node.Node
addUpdateListener, createImage, notifyListeners, removeUpdateListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanServerComponent

public MBeanServerComponent()
Constructor for MBeanServerComponent.

Method Detail

init

public void init()
Description copied from class: Component
Called when the Component has had all it's attributes set and should be ready for initialization.

Overrides:
init in class ComponentQuery

getConnector

public javax.management.MBeanServerConnection getConnector()

connect

public void connect()
             throws javax.management.JMException,
                    java.net.UnknownHostException
javax.management.JMException
java.net.UnknownHostException

setServer

protected void setServer(javax.management.MBeanServerConnection connection)

getHost

public java.lang.String getHost()
Returns the host.

Returns:
String

getName

public java.lang.String getName()
Returns the name.

Returns:
String

getPort

public int getPort()
Returns the port.

Returns:
int

setHost

public void setHost(java.lang.String host)
Sets the host.

Parameters:
host - The host to set

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set

setPort

public void setPort(int port)
Sets the port.

Parameters:
port - The port to set

getServer

public javax.management.MBeanServerConnection getServer()
Returns the server.

Returns:
RMIConnectorImpl

refresh

public void refresh()

getIcon

public org.eclipse.swt.graphics.Image getIcon()
Overrides:
getIcon in class ComponentQuery
Returns:
See Also:
com.gllt.troodon.console.Node#getIconName()

getConfigDescriptor

public NodeDescriptor getConfigDescriptor()
Overrides:
getConfigDescriptor in class ComponentQuery
See Also:
com.gllt.troodon.console.Node#getConfigDescriptor()

acceptsChildren

public boolean acceptsChildren()
Overrides:
acceptsChildren in class ComponentQuery

invoke

public java.lang.Object invoke(javax.management.ObjectName objectName,
                               java.lang.String operation,
                               java.lang.Object[] params,
                               java.lang.String[] paramClasses)
                        throws javax.management.InstanceNotFoundException,
                               javax.management.MBeanException,
                               javax.management.ReflectionException,
                               java.io.IOException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
java.io.IOException


Copyright © 2003 . All Rights Reserved.