com.tivoli.jmx.connector
Class RmiConnectorServer

com.tivoli.jmx.connector.ConnectorServer
  |
  +--com.tivoli.jmx.connector.RmiConnectorServer

public class RmiConnectorServer
extends ConnectorServer

RmiConnectorServer.java Defines connector servers that communicate via RMI.

Version:
1.1
Author:
Ward Harold

Fields inherited from class com.tivoli.jmx.connector.ConnectorServer
active, mbeanServer, serverName
 
Constructor Summary
RmiConnectorServer()
          Create a new instance of an RMI-based connector server.
 
Method Summary
 int getConnections()
          The number of active connections to the connector server.
 int getMaxConnections()
          The maximum number of simultaneous connections that will be accepted by a connector server.
 int getRequests()
          The number of requests that have been handled by a connector server..
 long getUptime()
          The length of time a connector server has been servicing requests.
 void postDeregister()
          Post deregistration callback.
 void postRegister(java.lang.Boolean registrationDone)
          Post registration callback.
 void preDeregister()
          Prederegistration callback.
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
          Preregistration callback.
 void setMaxConnections(int maxConnections)
          Sets the maximum number of simultaneous connections to be serviced by a connector server.
 void start()
          Begin servicing requests.
 void stop()
          Stop servicing requests.
 
Methods inherited from class com.tivoli.jmx.connector.ConnectorServer
isActive, newInstance
 

Constructor Detail

RmiConnectorServer

public RmiConnectorServer()
Create a new instance of an RMI-based connector server. The new instance has a default server name.
Method Detail

getConnections

public int getConnections()
The number of active connections to the connector server. Can't be determined for RMI.
Tags copied from interface: ConnectorServerMBean
Returns:
int

getMaxConnections

public int getMaxConnections()
The maximum number of simultaneous connections that will be accepted by a connector server. Can't be determined for an RMI connector.
Tags copied from interface: ConnectorServerMBean
Returns:
int

getRequests

public int getRequests()
The number of requests that have been handled by a connector server..
Tags copied from interface: ConnectorServerMBean
Returns:
int

getUptime

public long getUptime()
The length of time a connector server has been servicing requests.
Tags copied from interface: ConnectorServerMBean
Returns:
long

postDeregister

public void postDeregister()
Post deregistration callback. No action is taken for RMI.

postRegister

public void postRegister(java.lang.Boolean registrationDone)
Post registration callback. No action is taken for RMI.

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Prederegistration callback. No action is taken for RMI.

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
Preregistration callback. If an object name is specified for the connector it is recorded.
Overrides:
preRegister in class ConnectorServer
Parameters:
server - javax.management.MBeanServer
name - javax.management.ObjectName
Returns:
javax.management.ObjectName
Throws:
java.lang.Exception - The exception description.

setMaxConnections

public void setMaxConnections(int maxConnections)
Sets the maximum number of simultaneous connections to be serviced by a connector server. Can't be specified for an RMI connector.
Tags copied from interface: ConnectorServerMBean
Parameters:
maxConnections - int

start

public void start()
           throws java.lang.reflect.InvocationTargetException,
                  java.lang.IllegalStateException
Begin servicing requests.
Throws:
java.lang.reflect.InvocationTargetException - The exception description.
java.lang.IllegalStateException - The exception description.

stop

public void stop()
Stop servicing requests.