|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jdmk.comm.CommunicatorServer
com.sun.jdmk.comm.RmiConnectorServer
javax.management.remote.rmi and JdmkLegacyConnector.
Provides an implementation of the RmiConnectorServerMBean interface.
When creating the RmiConnectorServer , it is possible to specify the port number and
service name to be used. To do so, you can use the appropriate constructor or use to corresponding setter.
The default service name is specified by the constant com.sun.jdmk.ServiceName.RMI_CONNECTOR_SERVER.
If you don't specify an object name when you register the RmiConnectorServer
within the MBeanServer, the default one is:
com.sun.jdmk.ServiceName.DOMAIN + ":" + com.sun.jdmk.ServiceName.RMI_CONNECTOR_SERVER
| Field Summary |
| Fields inherited from class com.sun.jdmk.comm.CommunicatorServer |
HTML_TYPE, HTTP_TYPE, HTTPS_TYPE, OFFLINE, ONLINE, RMI_TYPE, SNMP_TYPE, STARTING, STOPPING |
| Constructor Summary | |
RmiConnectorServer()
Deprecated. Default constructor for RmiConnectorServer. |
|
RmiConnectorServer(int port)
Deprecated. Constructor for RmiConnectorServer. |
|
RmiConnectorServer(int port,
String serviceName)
Deprecated. Constructor for RmiConnectorServer. |
|
RmiConnectorServer(String serviceName)
Deprecated. Constructor for RmiConnectorServer. |
|
| Method Summary | |
protected void |
doBind()
Deprecated. Binds the adaptor server. |
protected void |
doError(Exception e)
Deprecated. |
protected void |
doProcess()
Deprecated. Returns immediately. |
protected void |
doReceive()
Deprecated. Collects incoming requests. |
protected void |
doUnbind()
Deprecated. Unbinds the adaptor. |
String |
getProtocol()
Deprecated. Returns the name of the protocol (rmi). |
String |
getServiceName()
Deprecated. Returns the service name of this RMI object. |
protected String |
makeDebugTag()
Deprecated. |
void |
postDeregister()
Deprecated. Allows the MBean to perform any operations needed after having been de-registered in the MBeanServer. |
void |
postRegister(Boolean registrationDone)
Deprecated. Allows the MBean to perform any operations needed after having been registered in the MBeanServer or after the registration has failed. |
void |
preDeregister()
Deprecated. Allows the MBean to perform any operations needed before being de-registered by the MBeanServer. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Deprecated. Allows the MBean to perform any operations it needs before being registered in the MBean server. |
void |
setMBeanServer(MBeanServer newMBS)
Deprecated. Set the MBeanServer object to which incoming
requests are sent. |
void |
setServiceName(String serviceName)
Deprecated. Set the service name of this RMI object. |
void |
stop()
Deprecated. Stops this connector server. |
| Methods inherited from class com.sun.jdmk.comm.CommunicatorServer |
addNotificationListener, getHost, getMBeanServer, getNotificationInfo, getPort, getState, getStateString, isActive, removeNotificationListener, run, setPort, start, waitState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.jdmk.comm.CommunicatorServerMBean |
getHost, getPort, getState, getStateString, isActive, setPort, start, waitState |
| Constructor Detail |
public RmiConnectorServer()
RmiConnectorServer.
com.sun.jdmk.ServiceName.RMI_CONNECTOR_PORT is used as default port number and the local host as host name.
com.sun.jdmk.ServiceName.RMI_CONNECTOR_SERVER is used as default port service name.
public RmiConnectorServer(int port)
RmiConnectorServer.
com.sun.jdmk.ServiceName.RMI_CONNECTOR_SERVER is used as default port service name.
public RmiConnectorServer(String serviceName)
RmiConnectorServer.
com.sun.jdmk.ServiceName.RMI_CONNECTOR_PORT is used as default
port number and the local host as host name.
public RmiConnectorServer(int port,
String serviceName)
RmiConnectorServer.
| Method Detail |
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
com.sun.jdmk.ServiceName.DOMAIN:
com.sun.jdmk.ServiceName.RMI_CONNECTOR_SERVER.
If any exception is raised, the RMI connector server MBean will not be registered in the MBean server.
preRegister in interface MBeanRegistrationpreRegister in class CommunicatorServerserver - The MBeanServer in which the MBean will be registered.name - The object name of the MBean.
Exception - This exception should be caught by the MBeanServer
and re-thrown as an MBeanRegistrationException.public void postRegister(Boolean registrationDone)
MBeanServer or after the registration has failed.
postRegister in interface MBeanRegistrationpostRegister in class CommunicatorServerregistrationDone - Indicates whether or not the MBean has been successfully registered in
the MBeanServer. The value false means that the registration phase has failed.
public void preDeregister()
throws Exception
MBeanServer.
preDeregister in interface MBeanRegistrationpreDeregister in class CommunicatorServerException - This exception should be caught by the MBeanServer and re-thrown
as an MBeanRegistrationException.public void postDeregister()
MBeanServer.
postDeregister in interface MBeanRegistrationpostDeregister in class CommunicatorServerpublic String getServiceName()
getServiceName in interface RmiConnectorServerMBean
public void setServiceName(String serviceName)
throws IllegalStateException
setServiceName in interface RmiConnectorServerMBeanserviceName - The service name of this RMI connector.
IllegalStateException - This method has been invoked while the
RMI connector was ONLINE or STARTING.public String getProtocol()
getProtocol in interface CommunicatorServerMBeangetProtocol in class CommunicatorServerpublic void stop()
Has no effect if this RMI connector server is
OFFLINE or STOPPING.
stop in interface CommunicatorServerMBeanstop in class CommunicatorServer
public void setMBeanServer(MBeanServer newMBS)
throws IllegalArgumentException,
IllegalStateException
CommunicatorServerMBeanServer object to which incoming
requests are sent. This must be either the MBean server in
which this connector is registered, or an
MBeanServerForwarder leading to that server. An
MBeanServerForwarder mbsf leads to an
MBean server mbs if
mbsf.getMBeanServer() is either mbs
or an MBeanServerForwarder leading to
mbs.
setMBeanServer in class CommunicatorServerIllegalStateException - This method has been invoked
while the communicator was ONLINE or STARTING.
IllegalArgumentException - if newMBS is neither
the MBean server in which this connector is registered nor an
MBeanServerForwarder leading to that server.
protected void doError(Exception e)
throws CommunicationException
doError in class CommunicatorServerCommunicationException
protected void doBind()
throws CommunicationException,
InterruptedException
doBind in class CommunicatorServerCommunicationException - if the adaptor can't bind to the specified port.
InterruptedException - when the adaptor is stopped.
protected void doReceive()
throws CommunicationException,
InterruptedException
doReceive in class CommunicatorServerCommunicationException - if the adaptor is not bound to the specified port.
InterruptedException - when the adaptor is stopped.
protected void doProcess()
throws CommunicationException,
InterruptedException
doProcess in class CommunicatorServerCommunicationException
InterruptedException
protected void doUnbind()
throws CommunicationException,
InterruptedException
doUnbind in class CommunicatorServerCommunicationException
InterruptedExceptionprotected String makeDebugTag()
|
FCS Release jdmk-5_1-b34.1 2005.02.10_16:46:09_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||