Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
RemoteObject
mx4j.tools.adaptor.rmi.RMIAdaptor
public abstract class RMIAdaptor
extends RemoteObject
implements RMIAdaptorMBean, javax.management.MBeanRegistration, RemoteAdaptor
Method Summary | |
void |
|
protected void |
|
void |
|
void |
|
String |
|
String |
|
String |
|
Properties |
|
protected javax.management.MBeanServer | |
Properties |
|
protected javax.management.ObjectName | |
String |
|
protected void | |
InvocationResult |
|
boolean |
|
void | |
void |
|
void | |
javax.management.ObjectName |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected void |
|
protected void |
public void addInterceptor(Interceptor interceptor)
Adds an interceptor to this RMI adaptor
protected void bind(Object adaptor) throws NamingException
public void clearJNDIProperties()
Resets the JNDI properties set for this adaptor.
This method can be called only if this adaptor is not running.
- Specified by:
- clearJNDIProperties in interface RMIAdaptorMBean
- See Also:
putJNDIProperty(Object,Object)
public void clearNamingProperties()
Deprecated. Replaced by
clearJNDIProperties()
- Specified by:
- clearNamingProperties in interface RMIAdaptorMBean
public String getHostAddress()
Returns the host address on which this adaptor is running
- Specified by:
- getHostAddress in interface RMIAdaptorMBean
- getHostAddress in interface RemoteAdaptor
public String getHostName()
Returns the host name on which this adaptor is running
- Specified by:
- getHostName in interface RMIAdaptorMBean
- getHostName in interface RemoteAdaptor
public String getJNDIName()
Returns the JNDI name under which this RMI Adaptor is registered
- Specified by:
- getJNDIName in interface RMIAdaptorMBean
public Properties getJNDIProperties()
Returns the JNDI properties for this adaptor.
- Specified by:
- getJNDIProperties in interface RMIAdaptorMBean
- See Also:
putJNDIProperty(Object,Object)
protected javax.management.MBeanServer getMBeanServer()
public Properties getNamingProperties()
Deprecated. Replaced by
getJNDIProperties()
- Specified by:
- getNamingProperties in interface RMIAdaptorMBean
protected javax.management.ObjectName getObjectName()
public String getProtocol()
Returns the protocol of this adaptor
- Specified by:
- getProtocol in interface RMIAdaptorMBean
protected void installInterceptors()
public boolean isRunning()
Returns whether this adaptor has been started and not been stopped.
- Specified by:
- isRunning in interface RMIAdaptorMBean
- See Also:
stop()
public void postDeregister()
- Specified by:
- postDeregister in interface javax.management.MBeanRegistration
public void postRegister(Boolean registrationDone)
- Specified by:
- postRegister in interface javax.management.MBeanRegistration
public void preDeregister() throws Exception
- Specified by:
- preDeregister in interface javax.management.MBeanRegistration
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws Exception
- Specified by:
- preRegister in interface javax.management.MBeanRegistration
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.
- Specified by:
- putJNDIProperty in interface RMIAdaptorMBean
- See Also:
clearJNDIProperties()
public void putNamingProperty(Object property, Object value)
Deprecated. Replaced by {link #putJNDIProperty}
- Specified by:
- putNamingProperty in interface RMIAdaptorMBean
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.
- Specified by:
- setJNDIName in interface RMIAdaptorMBean
public void setMBeanServer(javax.management.MBeanServer server)
Sets the target MBeanServer in case this adaptor is not registered with it
public void start() throws Exception
Starts this adaptor, so that it can accept incoming calls
- Specified by:
- start in interface RMIAdaptorMBean
- See Also:
stop()
,isRunning()
public void stop() throws Exception
Stops this adaptor, so that it does not accept incoming calls anymore
- Specified by:
- stop in interface RMIAdaptorMBean
- See Also:
start()
protected void unbind() throws NamingException
protected void uninstallInterceptors()