|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
mx4j.tools.adaptor.rmi.RMIAdaptor
The RMI adaptor MBean, base for the JRMP and IIOP protocol
Field Summary |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
RMIAdaptor()
|
Method Summary | |
void |
addInterceptor(Interceptor interceptor)
Adds an interceptor to this RMI adaptor |
protected void |
bind(java.lang.Object adaptor)
|
void |
clearJNDIProperties()
Resets the JNDI properties set for this adaptor. |
void |
clearNamingProperties()
Deprecated. Replaced by clearJNDIProperties() |
java.lang.String |
getHostAddress()
Returns the host address on which this adaptor is running |
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 |
java.util.Properties |
getJNDIProperties()
Returns the JNDI properties for this adaptor. |
protected javax.management.MBeanServer |
getMBeanServer()
|
java.util.Properties |
getNamingProperties()
Deprecated. Replaced by getJNDIProperties() |
protected javax.management.ObjectName |
getObjectName()
|
abstract java.lang.String |
getProtocol()
Returns the protocol of this adaptor |
protected void |
installInterceptors()
|
InvocationResult |
invoke(Invocation invocation)
Invocation method |
abstract boolean |
isRunning()
Returns whether this adaptor has been started and not been stopped. |
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
void |
putJNDIProperty(java.lang.Object property,
java.lang.Object value)
Puts a JNDI property in the environment for the JNDI Initial Context used by this adaptor. |
void |
putNamingProperty(java.lang.Object property,
java.lang.Object value)
Deprecated. Replaced by {link #putJNDIProperty} |
void |
setJNDIName(java.lang.String name)
Sets the JNDI name under which the RMI adaptor should be registered. |
void |
setMBeanServer(javax.management.MBeanServer server)
Sets the target MBeanServer in case this adaptor is not registered with it |
abstract void |
start()
Starts this adaptor, so that it can accept incoming calls |
abstract void |
stop()
Stops this adaptor, so that it does not accept incoming calls anymore |
protected void |
unbind()
|
protected void |
uninstallInterceptors()
|
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RMIAdaptor()
Method Detail |
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
java.lang.Exception
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister() throws java.lang.Exception
preDeregister
in interface javax.management.MBeanRegistration
java.lang.Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public abstract void start() throws java.lang.Exception
start
in interface RMIAdaptorMBean
java.lang.Exception
stop()
,
isRunning()
public abstract void stop() throws java.lang.Exception
stop
in interface RMIAdaptorMBean
java.lang.Exception
start()
public abstract boolean isRunning()
isRunning
in interface RMIAdaptorMBean
stop()
public abstract java.lang.String getProtocol()
getProtocol
in interface RMIAdaptorMBean
public java.lang.String getJNDIName()
getJNDIName
in interface RMIAdaptorMBean
public void setJNDIName(java.lang.String name)
setJNDIName
in interface RMIAdaptorMBean
public void putJNDIProperty(java.lang.Object property, java.lang.Object value)
putJNDIProperty
in interface RMIAdaptorMBean
clearJNDIProperties()
public void putNamingProperty(java.lang.Object property, java.lang.Object value)
putNamingProperty
in interface RMIAdaptorMBean
public void clearJNDIProperties()
clearJNDIProperties
in interface RMIAdaptorMBean
putJNDIProperty(java.lang.Object, java.lang.Object)
public void clearNamingProperties()
clearJNDIProperties()
clearNamingProperties
in interface RMIAdaptorMBean
public java.util.Properties getJNDIProperties()
getJNDIProperties
in interface RMIAdaptorMBean
putJNDIProperty(java.lang.Object, java.lang.Object)
public java.util.Properties getNamingProperties()
getJNDIProperties()
getNamingProperties
in interface RMIAdaptorMBean
public java.lang.String getHostName()
getHostName
in interface RMIAdaptorMBean
public java.lang.String getHostAddress()
getHostAddress
in interface RMIAdaptorMBean
public InvocationResult invoke(Invocation invocation) throws java.lang.Exception
Invocable
invoke
in interface Invocable
java.lang.Exception
public void addInterceptor(Interceptor interceptor)
protected void installInterceptors()
protected void uninstallInterceptors()
public void setMBeanServer(javax.management.MBeanServer server)
protected javax.management.MBeanServer getMBeanServer()
protected javax.management.ObjectName getObjectName()
protected void bind(java.lang.Object adaptor) throws javax.naming.NamingException
javax.naming.NamingException
protected void unbind() throws javax.naming.NamingException
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |