mx4j.adaptor.rmi.jrmp
Class JRMPAdaptor

java.lang.Object
  |
  +--mx4j.adaptor.rmi.RMIAdaptor
        |
        +--mx4j.adaptor.rmi.jrmp.JRMPAdaptor
All Implemented Interfaces:
JRMPAdaptorMBean, MBeanRegistration, RMIAdaptorMBean

public class JRMPAdaptor
extends RMIAdaptor
implements JRMPAdaptorMBean

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

Version:
$Revision: 1.3 $
Author:
Simone Bordet

Fields inherited from interface mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean
OBJECT_NAME
 
Constructor Summary
JRMPAdaptor()
           
 
Method Summary
protected  ObjectName getDefaultObjectName()
           
 int getPort()
          Returns the RMI port on which the adaptor's remote object is exported to
 java.lang.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(java.lang.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.adaptor.rmi.RMIAdaptor
addInterceptor, bind, clearNamingProperties, getHostName, getInterceptors, getJNDIName, getMBeanServer, getNamingProperties, getObjectName, postDeregister, postRegister, preDeregister, preRegister, putNamingProperty, setJNDIName, setMBeanServer, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mx4j.adaptor.rmi.RMIAdaptorMBean
clearNamingProperties, getHostName, getJNDIName, putNamingProperty, setJNDIName
 

Constructor Detail

JRMPAdaptor

public JRMPAdaptor()
Method Detail

start

public void start()
           throws java.rmi.RemoteException,
                  javax.naming.NamingException,
                  JMException
Description copied from interface: RMIAdaptorMBean
Starts this adaptor, so that it can accept incoming calls
Specified by:
start in interface RMIAdaptorMBean
Following copied from interface: mx4j.adaptor.rmi.RMIAdaptorMBean
See Also:
RMIAdaptorMBean.stop(), RMIAdaptorMBean.isRunning()

stop

public void stop()
          throws java.rmi.NoSuchObjectException,
                 javax.naming.NamingException
Description copied from interface: RMIAdaptorMBean
Stops this adaptor, so that it does not accept incoming calls anymore
Specified by:
stop in interface RMIAdaptorMBean
Following copied from interface: mx4j.adaptor.rmi.RMIAdaptorMBean
See Also:
RMIAdaptorMBean.start()

isRunning

public boolean isRunning()
Description copied from interface: RMIAdaptorMBean
Returns whether this adaptor has been started and not been stopped.
Specified by:
isRunning in interface RMIAdaptorMBean
Following copied from interface: mx4j.adaptor.rmi.RMIAdaptorMBean
See Also:
RMIAdaptorMBean.stop()

getPort

public int getPort()
Description copied from interface: JRMPAdaptorMBean
Returns the RMI port on which the adaptor's remote object is exported to
Specified by:
getPort in interface JRMPAdaptorMBean
Following copied from interface: mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean
See Also:
JRMPAdaptorMBean.setPort(int)

setPort

public void setPort(int port)
Description copied from interface: JRMPAdaptorMBean
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
Following copied from interface: mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean
See Also:
JRMPAdaptorMBean.getPort()

getSSLFactory

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

setSSLFactory

public void setSSLFactory(java.lang.String factory)
Description copied from interface: JRMPAdaptorMBean
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

getDefaultObjectName

protected ObjectName getDefaultObjectName()
                                   throws MalformedObjectNameException
Overrides:
getDefaultObjectName in class RMIAdaptor