mx4j.adaptor.rmi
Interface RMIAdaptorMBean

All Known Subinterfaces:
IIOPAdaptorMBean, JRMPAdaptorMBean
All Known Implementing Classes:
RMIAdaptor

public interface RMIAdaptorMBean

The management interface for the RMI adaptor

Version:
$Revision: 1.3 $
Author:
Simone Bordet

Method Summary
 void clearNamingProperties()
          Reset the naming properties set for this adaptor.
 java.lang.String getHostName()
          Returns the host name on which this adaptor is running
 java.lang.String getJNDIName()
          Returns the JNDI name under which this RMI Adaptor is registered
 boolean isRunning()
          Returns whether this adaptor has been started and not been stopped.
 void putNamingProperty(java.lang.Object property, java.lang.Object value)
          Puts a JNDI naming property for this adaptor.
 void setJNDIName(java.lang.String name)
          Sets the JNDI name under which the RMI adaptor should be registered.
 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
 

Method Detail

start

public void start()
           throws java.lang.Exception
Starts this adaptor, so that it can accept incoming calls
See Also:
stop(), isRunning()

stop

public void stop()
          throws java.lang.Exception
Stops this adaptor, so that it does not accept incoming calls anymore
See Also:
start()

isRunning

public boolean isRunning()
Returns whether this adaptor has been started and not been stopped.
See Also:
stop()

getJNDIName

public java.lang.String getJNDIName()
Returns the JNDI name under which this RMI Adaptor is registered

setJNDIName

public void setJNDIName(java.lang.String name)
Sets the JNDI name under which the RMI adaptor should be registered.
This method can be called only if this adaptor is not running.

putNamingProperty

public void putNamingProperty(java.lang.Object property,
                              java.lang.Object value)
Puts a JNDI naming property for this adaptor.
This method can be called only if this adaptor is not running.
See Also:
clearNamingProperties()

clearNamingProperties

public void clearNamingProperties()
Reset the naming properties set for this adaptor.
This method can be called only if this adaptor is not running.
See Also:
putNamingProperty(java.lang.Object, java.lang.Object)

getHostName

public java.lang.String getHostName()
Returns the host name on which this adaptor is running