mx4j.adaptor.rmi.jrmp
Interface JRMPAdaptorMBean

All Superinterfaces:
RMIAdaptorMBean
All Known Implementing Classes:
JRMPAdaptor

public interface JRMPAdaptorMBean
extends RMIAdaptorMBean

MBean interface.

Version:
$Revision: 1.6 $
Author:
Simone Bordet

Method Summary
 int getPort()
          Returns the RMI port on which the adaptor's remote object is exported to
 java.lang.String getProtocol()
          Returns the protocol of this adaptor
 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 interface mx4j.adaptor.rmi.RMIAdaptorMBean
clearJNDIProperties, clearNamingProperties, getHostAddress, getHostName, getJNDIName, getJNDIProperties, getNamingProperties, putJNDIProperty, putNamingProperty, setJNDIName
 

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
java.rmi.RemoteException
javax.naming.NamingException
JMException
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
java.rmi.NoSuchObjectException
javax.naming.NamingException
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
See Also:
RMIAdaptorMBean.stop()

getProtocol

public java.lang.String getProtocol()
Description copied from interface: RMIAdaptorMBean
Returns the protocol of this adaptor

Specified by:
getProtocol in interface RMIAdaptorMBean

getPort

public int getPort()
Returns the RMI port on which the adaptor's remote object is exported to

See Also:
setPort(int)

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.

See Also:
getPort()

getSSLFactory

public java.lang.String getSSLFactory()
Returns the ObjectName of the SSL ServerSocket factory MBean used by this adaptor for secure invocations.


setSSLFactory

public 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.
This method can be called only if this adaptor is not running.



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