mx4j.tools.adaptor.rmi

Interface RMIAdaptorMBean

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

public interface RMIAdaptorMBean

Management interface for the RMIAdaptor MBean.

Version:
$Revision: 1.3 $

Method Summary

void
clearJNDIProperties()
Resets the JNDI properties set for this adaptor.
void
clearNamingProperties()
Deprecated. Replaced by {link #clearJNDIProperties}
String
getHostAddress()
Returns the host address on which this adaptor is running
String
getHostName()
Returns the host name on which this adaptor is running
String
getJNDIName()
Returns the JNDI name under which this RMI Adaptor is registered
Properties
getJNDIProperties()
Returns the JNDI properties for this adaptor.
Properties
getNamingProperties()
Deprecated. Replaced by {link #getJNDIProperties}
String
getProtocol()
Returns the protocol of this adaptor
boolean
isRunning()
Returns whether this adaptor has been started and not been stopped.
void
putJNDIProperty(Object property, Object value)
Puts a JNDI property in the environment for the JNDI Initial Context used by this adaptor.
void
putNamingProperty(Object property, Object value)
Deprecated. Replaced by {link #putJNDIProperty}
void
setJNDIName(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 Details

clearJNDIProperties

public void clearJNDIProperties()
Resets the JNDI properties set for this adaptor.
This method can be called only if this adaptor is not running.

See Also:
putJNDIProperty(Object,Object)


clearNamingProperties

public void clearNamingProperties()

Deprecated. Replaced by {link #clearJNDIProperties}


getHostAddress

public String getHostAddress()
Returns the host address on which this adaptor is running


getHostName

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


getJNDIName

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


getJNDIProperties

public Properties getJNDIProperties()
Returns the JNDI properties for this adaptor.

See Also:
putJNDIProperty(Object,Object)


getNamingProperties

public Properties getNamingProperties()

Deprecated. Replaced by {link #getJNDIProperties}


getProtocol

public String getProtocol()
Returns the protocol of this adaptor


isRunning

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

See Also:
stop()


putJNDIProperty

public void putJNDIProperty(Object property,
                            Object value)
Puts a JNDI property in the environment for the JNDI Initial Context used by this adaptor.
This method can be called only if this adaptor is not running.

See Also:
clearJNDIProperties()


putNamingProperty

public void putNamingProperty(Object property,
                              Object value)

Deprecated. Replaced by {link #putJNDIProperty}


setJNDIName

public void setJNDIName(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.


start

public void start()
            throws Exception
Starts this adaptor, so that it can accept incoming calls

See Also:
stop(), isRunning()


stop

public void stop()
            throws Exception
Stops this adaptor, so that it does not accept incoming calls anymore

See Also:
start()


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