|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
org.jboss.invocation.jrmp.server.JRMPInvoker
The JRMPInvoker is an RMI implementation that can generate Invocations from RMI/JRMP into the JMX base.
Field Summary | |
static int |
ANONYMOUS_PORT
Identifer to instruct the usage of an anonymous port. |
protected int |
backlog
The socket accept backlog |
protected java.rmi.server.RMIClientSocketFactory |
clientSocketFactory
An optional custom client socket factory |
protected java.lang.String |
clientSocketFactoryName
The class name of the optional custom client socket factory |
protected boolean |
enableClassCaching
A flag to enable caching of classes in the MarshalledValueInputStream |
protected java.rmi.server.RemoteStub |
invokerStub
|
protected Logger (src) |
log
Instance logger. |
protected int |
rmiPort
The port the container will be exported on |
protected java.lang.String |
serverAddress
The address to bind the rmi port on |
protected java.rmi.server.RMIServerSocketFactory |
serverSocketFactory
An optional custom server socket factory |
protected java.lang.String |
serverSocketFactoryName
The class name of the optional custom server socket factory |
protected java.lang.String |
sslDomain
The name of the security domain to use with server sockets that support SSL |
protected ServiceMBeanSupport (src) |
support
Service MBean support delegate. |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Fields inherited from interface org.jboss.invocation.Invoker (src) |
ID |
Constructor Summary | |
JRMPInvoker()
|
Method Summary | |
void |
create()
|
protected Invoker (src) |
createDelegateInvoker()
|
void |
destroy()
|
protected void |
destroyService()
|
protected void |
exportCI()
|
int |
getBacklog()
|
boolean |
getEnableClassCaching()
|
java.lang.String |
getName()
|
java.lang.String |
getRMIClientSocketFactory()
|
java.rmi.server.RMIClientSocketFactory |
getRMIClientSocketFactoryBean()
|
int |
getRMIObjectPort()
|
java.lang.String |
getRMIServerSocketFactory()
|
java.rmi.server.RMIServerSocketFactory |
getRMIServerSocketFactoryBean()
|
java.lang.String |
getSecurityDomain()
|
MBeanServer (src) |
getServer()
|
java.lang.String |
getServerAddress()
|
java.lang.String |
getServerHostName()
A free form String identifier for this delegate invoker, can be clustered or target node This should evolve in a more advanced meta-inf object |
int |
getState()
|
java.lang.String |
getStateString()
|
java.io.Serializable |
getStub()
|
protected Transaction (src) |
importTPC(java.lang.Object tpc)
Import a transaction propagation context into the local VM, and return the corresponding Transaction . |
java.lang.Object |
invoke(Invocation (src) invocation)
Invoke a Remote interface method. |
void |
jbossInternalLifecycle(java.lang.String method)
|
protected void |
loadCustomSocketFactories()
Load and instantiate the clientSocketFactory, serverSocketFactory using the TCL and set the bind address and SSL domain if the serverSocketFactory supports it. |
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(java.lang.Boolean registrationDone)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName (src) |
preRegister(MBeanServer (src) server,
ObjectName (src) name)
This method is called by the MBeanServer before registration takes place. |
protected void |
rebind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object val)
|
void |
setBacklog(int back)
|
void |
setEnableClassCaching(boolean flag)
|
void |
setRMIClientSocketFactory(java.lang.String name)
|
void |
setRMIClientSocketFactoryBean(java.rmi.server.RMIClientSocketFactory bean)
|
void |
setRMIObjectPort(int rmiPort)
|
void |
setRMIServerSocketFactory(java.lang.String name)
|
void |
setRMIServerSocketFactoryBean(java.rmi.server.RMIServerSocketFactory bean)
|
void |
setSecurityDomain(java.lang.String domainName)
|
void |
setServerAddress(java.lang.String address)
|
void |
start()
|
protected void |
startService()
|
void |
stop()
|
protected void |
stopService()
|
protected void |
unexportCI()
|
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
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 |
Field Detail |
public static final int ANONYMOUS_PORT
protected Logger (src) log
protected ServiceMBeanSupport (src) support
protected int rmiPort
protected java.rmi.server.RMIClientSocketFactory clientSocketFactory
protected java.rmi.server.RMIServerSocketFactory serverSocketFactory
protected java.lang.String clientSocketFactoryName
protected java.lang.String serverSocketFactoryName
protected java.lang.String serverAddress
protected java.lang.String sslDomain
protected java.rmi.server.RemoteStub invokerStub
protected int backlog
protected boolean enableClassCaching
Constructor Detail |
public JRMPInvoker()
Method Detail |
public int getBacklog()
public void setBacklog(int back)
public boolean getEnableClassCaching()
public void setEnableClassCaching(boolean flag)
public java.lang.String getServerHostName()
Invoker (src)
getServerHostName
in interface Invoker (src)
public void setRMIObjectPort(int rmiPort)
public int getRMIObjectPort()
public void setRMIClientSocketFactory(java.lang.String name)
public java.lang.String getRMIClientSocketFactory()
public void setRMIClientSocketFactoryBean(java.rmi.server.RMIClientSocketFactory bean)
public java.rmi.server.RMIClientSocketFactory getRMIClientSocketFactoryBean()
public void setRMIServerSocketFactory(java.lang.String name)
public java.lang.String getRMIServerSocketFactory()
public void setRMIServerSocketFactoryBean(java.rmi.server.RMIServerSocketFactory bean)
public java.rmi.server.RMIServerSocketFactory getRMIServerSocketFactoryBean()
public void setServerAddress(java.lang.String address)
public java.lang.String getServerAddress()
public void setSecurityDomain(java.lang.String domainName)
public java.lang.String getSecurityDomain()
public java.io.Serializable getStub()
protected void startService() throws java.lang.Exception
java.lang.Exception
protected void stopService() throws java.lang.Exception
java.lang.Exception
protected void destroyService() throws java.lang.Exception
java.lang.Exception
public java.lang.Object invoke(Invocation (src) invocation) throws java.lang.Exception
invoke
in interface Invoker (src)
invocation
- A pointer to the invocation object
java.lang.Exception
- Failed to invoke method.protected Invoker (src) createDelegateInvoker()
protected void exportCI() throws java.lang.Exception
java.lang.Exception
protected void unexportCI() throws java.lang.Exception
java.lang.Exception
protected void rebind(javax.naming.Context ctx, java.lang.String name, java.lang.Object val) throws javax.naming.NamingException
javax.naming.NamingException
protected void loadCustomSocketFactories()
protected Transaction (src) importTPC(java.lang.Object tpc)
Transaction
.
public java.lang.String getName()
public MBeanServer (src) getServer()
public int getState()
public java.lang.String getStateString()
public void create() throws java.lang.Exception
java.lang.Exception
public void start() throws java.lang.Exception
java.lang.Exception
public void stop()
public void destroy()
public void jbossInternalLifecycle(java.lang.String method) throws java.lang.Exception
java.lang.Exception
public ObjectName (src) preRegister(MBeanServer (src) server, ObjectName (src) name) throws java.lang.Exception
MBeanRegistration (src)
The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preRegister
in interface MBeanRegistration (src)
java.lang.Exception
- for any error, the MBean is not registered.public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration (src)
postRegister
in interface MBeanRegistration (src)
registrationDone
- the MBeanServer passes true when the
MBean was registered, false otherwise.public void preDeregister() throws java.lang.Exception
MBeanRegistration (src)
The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister
in interface MBeanRegistration (src)
java.lang.Exception
public void postDeregister()
MBeanRegistration (src)
postDeregister
in interface MBeanRegistration (src)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |