mx4j.tools.adaptor.rmi.jrmp

Class JRMPAdaptor

Implemented Interfaces:
Invocable, JRMPAdaptorMBean, javax.management.MBeanRegistration, Remote, RemoteAdaptor, RMIAdaptorMBean

public class JRMPAdaptor
extends RMIAdaptor
implements JRMPAdaptorMBean

Adaptor for the JRMP protocol, the native protocol of Java RMI.

Version:
$Revision: 1.3 $

Constructor Summary

JRMPAdaptor()
Creates a new JRMP adaptor

Method Summary

int
getPort()
Returns the RMI port on which the adaptor's remote object is exported to
String
getProtocol()
Returns the protocol of this adaptor
String
getSSLFactory()
Returns the ObjectName of the SSL ServerSocket factory MBean used by this adaptor for secure invocations.
boolean
isRunning()
Returns whether this adaptor has been started and not been stopped.
void
setPort(int port)
Sets the RMI port on which the adaptor's remote object will be exported to.
void
setSSLFactory(String factory)
Sets the ObjectName of the SSL ServerSocket factory MBean that will be used by this adaptor for secure invocations.
void
start()
Starts this adaptor, so that it can accept incoming calls
void
stop()
Stops this adaptor, so that it does not accept incoming calls anymore

Methods inherited from class mx4j.tools.adaptor.rmi.RMIAdaptor

addInterceptor, bind, clearJNDIProperties, clearNamingProperties, getHostAddress, getHostName, getJNDIName, getJNDIProperties, getMBeanServer, getNamingProperties, getObjectName, getProtocol, installInterceptors, invoke, isRunning, postDeregister, postRegister, preDeregister, preRegister, putJNDIProperty, putNamingProperty, setJNDIName, setMBeanServer, start, stop, unbind, uninstallInterceptors

Constructor Details

JRMPAdaptor

public JRMPAdaptor()
Creates a new JRMP adaptor

Method Details

getPort

public int getPort()
Returns the RMI port on which the adaptor's remote object is exported to
Specified by:
getPort in interface JRMPAdaptorMBean

See Also:
setPort(int)


getProtocol

public String getProtocol()
Returns the protocol of this adaptor
Specified by:
getProtocol in interface RMIAdaptorMBean
Overrides:
getProtocol in interface RMIAdaptor


getSSLFactory

public String getSSLFactory()
Returns the ObjectName of the SSL ServerSocket factory MBean used by this adaptor for secure invocations.
Specified by:
getSSLFactory in interface JRMPAdaptorMBean


isRunning

public boolean isRunning()
Returns whether this adaptor has been started and not been stopped.
Specified by:
isRunning in interface RMIAdaptorMBean
Overrides:
isRunning in interface RMIAdaptor

See Also:
RMIAdaptorMBean.stop()


setPort

public void setPort(int port)
Sets the RMI port on which the adaptor's remote object will be exported to.
This method can be called only if this adaptor is not running.
Specified by:
setPort in interface JRMPAdaptorMBean

See Also:
getPort()


setSSLFactory

public void setSSLFactory(String factory)
Sets the ObjectName of the SSL ServerSocket factory MBean that will be used by this adaptor for secure invocations.
This method can be called only if this adaptor is not running.
Specified by:
setSSLFactory in interface JRMPAdaptorMBean


start

public void start()
            throws RemoteException,
                   NamingException,
                   javax.management.JMException
Starts this adaptor, so that it can accept incoming calls
Specified by:
start in interface RMIAdaptorMBean
Overrides:
start in interface RMIAdaptor

See Also:
RMIAdaptorMBean.stop(), RMIAdaptorMBean.isRunning()


stop

public void stop()
            throws NoSuchObjectException,
                   NamingException
Stops this adaptor, so that it does not accept incoming calls anymore
Specified by:
stop in interface RMIAdaptorMBean
Overrides:
stop in interface RMIAdaptor

See Also:
RMIAdaptorMBean.start()


Copyright © 2001-2003 MX4J Team. All Rights Reserved.