|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
mx4j.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 MBeanServer |
getMBeanServer()
|
java.util.Properties |
getNamingProperties()
Deprecated. Replaced by getJNDIProperties() |
protected 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()
Called upon after the MBean has been de-registered. |
void |
postRegister(java.lang.Boolean registrationDone)
Called upon after a registration ( successful or not ). |
void |
preDeregister()
Called upon before an MBean will be de-registered by
the MBeanServer . |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations before being registered to the MBeanServer . |
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(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 ObjectName preRegister(MBeanServer server, ObjectName name) throws java.lang.Exception
MBeanRegistration
MBeanServer
.
Any exception will cause the MBean not being registered.
preRegister
in interface MBeanRegistration
server
- The MBeanServer on which the MBean will be registered.name
- The ObjectName
of the MBean.
java.lang.Exception
- Exception of the operation. Note that this is caught
by the MBeanServer
and re-thrown as an
MBeanRegistrationException
.public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration
postRegister
in interface MBeanRegistration
registrationDone
- Evaluates to true of the registrations
is successful, false otherwise.public void preDeregister() throws java.lang.Exception
MBeanRegistration
MBean
will be de-registered by
the MBeanServer
.
preDeregister
in interface MBeanRegistration
java.lang.Exception
- Would be caught by the MBeanServer
and rethrown as an MBeanRegistrationException.public void postDeregister()
MBeanRegistration
postDeregister
in interface 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(MBeanServer server)
protected MBeanServer getMBeanServer()
protected 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 |