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

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

public class MBeanServerComponent
extends Component

MBeanServerComponent.java Wraps a JMX server connector.

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
MBeanServerComponent(ComponentRegistry componentRegistry, java.lang.String name, java.lang.String host, int port)
          Constructor for MBeanServerComponent.
 
Method Summary
 boolean acceptsChildren()
           
 void connect()
           
 INode[] getChildren()
           
 NodeDescriptor getConfigDescriptor()
           
 org.jboss.jmx.connector.rmi.RMIConnectorImpl getConnector()
           
 DomainNode[] getDomains()
           
 java.lang.String getHost()
          Returns the host.
 java.lang.String getIconName()
           
 java.lang.String getName()
          Returns the name.
 int getPort()
          Returns the port.
 org.jboss.jmx.connector.rmi.RMIConnectorImpl getServer()
          Returns the server.
static MBeanServerComponent[] listConnections()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanServerComponent

public MBeanServerComponent(ComponentRegistry componentRegistry,
                            java.lang.String name,
                            java.lang.String host,
                            int port)
Constructor for MBeanServerComponent.

Method Detail

listConnections

public static MBeanServerComponent[] listConnections()

getConnector

public org.jboss.jmx.connector.rmi.RMIConnectorImpl getConnector()

connect

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

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 org.jboss.jmx.connector.rmi.RMIConnectorImpl getServer()
Returns the server.

Returns:
RMIConnectorImpl

refresh

public void refresh()

getDomains

public DomainNode[] getDomains()

getChildren

public INode[] getChildren()
Specified by:
getChildren in interface INode
Overrides:
getChildren in class Component
See Also:
com.gllt.troodon.console.INode#getChildren()

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()

acceptsChildren

public boolean acceptsChildren()
Specified by:
acceptsChildren in interface INode
Overrides:
acceptsChildren in class Component


Copyright © 2003 . All Rights Reserved.