|
|||||||||||
PREV CLASS NEXT CLASS | 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 RMIClientSocketFactory |
clientSocketFactory
An optional custom client socket factory |
protected 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 RemoteStub |
invokerStub
|
protected org.jboss.logging.Logger |
log
Instance logger. |
protected int |
rmiPort
The port the container will be exported on |
protected String |
serverAddress
The address to bind the rmi port on |
protected RMIServerSocketFactory |
serverSocketFactory
An optional custom server socket factory |
protected String |
serverSocketFactoryName
The class name of the optional custom server socket factory |
protected String |
sslDomain
The name of the security domain to use with server sockets that support SSL |
protected org.jboss.system.ServiceMBeanSupport |
support
Service MBean support delegate. |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Fields inherited from interface org.jboss.invocation.Invoker |
ID |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
JRMPInvoker()
|
Method Summary | |
void |
create()
|
protected Invoker |
createDelegateInvoker()
|
void |
destroy()
|
protected void |
destroyService()
|
protected void |
exportCI()
|
int |
getBacklog()
|
boolean |
getEnableClassCaching()
|
String |
getName()
|
String |
getRMIClientSocketFactory()
|
RMIClientSocketFactory |
getRMIClientSocketFactoryBean()
|
int |
getRMIObjectPort()
|
String |
getRMIServerSocketFactory()
|
RMIServerSocketFactory |
getRMIServerSocketFactoryBean()
|
String |
getSecurityDomain()
|
javax.management.MBeanServer |
getServer()
|
String |
getServerAddress()
|
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()
|
String |
getStateString()
|
Serializable |
getStub()
|
protected Transaction |
importTPC(Object tpc)
Import a transaction propagation context into the local VM, and return the corresponding Transaction . |
Object |
invoke(Invocation invocation)
Invoke a Remote interface method. |
void |
jbossInternalLifecycle(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()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
protected void |
rebind(Context ctx,
String name,
Object val)
|
void |
setBacklog(int back)
|
void |
setEnableClassCaching(boolean flag)
|
void |
setRMIClientSocketFactory(String name)
|
void |
setRMIClientSocketFactoryBean(RMIClientSocketFactory bean)
|
void |
setRMIObjectPort(int rmiPort)
|
void |
setRMIServerSocketFactory(String name)
|
void |
setRMIServerSocketFactoryBean(RMIServerSocketFactory bean)
|
void |
setSecurityDomain(String domainName)
|
void |
setServerAddress(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 org.jboss.logging.Logger log
protected org.jboss.system.ServiceMBeanSupport support
protected int rmiPort
protected RMIClientSocketFactory clientSocketFactory
protected RMIServerSocketFactory serverSocketFactory
protected String clientSocketFactoryName
protected String serverSocketFactoryName
protected String serverAddress
protected String sslDomain
protected RemoteStub invokerStub
protected int backlog
protected boolean enableClassCaching
Constructor Detail |
public JRMPInvoker()
Method Detail |
public int getBacklog()
getBacklog
in interface JRMPInvokerMBean
public void setBacklog(int back)
setBacklog
in interface JRMPInvokerMBean
public boolean getEnableClassCaching()
getEnableClassCaching
in interface JRMPInvokerMBean
public void setEnableClassCaching(boolean flag)
setEnableClassCaching
in interface JRMPInvokerMBean
public String getServerHostName()
Invoker
getServerHostName
in interface Invoker
public void setRMIObjectPort(int rmiPort)
setRMIObjectPort
in interface JRMPInvokerMBean
public int getRMIObjectPort()
getRMIObjectPort
in interface JRMPInvokerMBean
public void setRMIClientSocketFactory(String name)
setRMIClientSocketFactory
in interface JRMPInvokerMBean
public String getRMIClientSocketFactory()
getRMIClientSocketFactory
in interface JRMPInvokerMBean
public void setRMIClientSocketFactoryBean(RMIClientSocketFactory bean)
setRMIClientSocketFactoryBean
in interface JRMPInvokerMBean
public RMIClientSocketFactory getRMIClientSocketFactoryBean()
getRMIClientSocketFactoryBean
in interface JRMPInvokerMBean
public void setRMIServerSocketFactory(String name)
setRMIServerSocketFactory
in interface JRMPInvokerMBean
public String getRMIServerSocketFactory()
getRMIServerSocketFactory
in interface JRMPInvokerMBean
public void setRMIServerSocketFactoryBean(RMIServerSocketFactory bean)
setRMIServerSocketFactoryBean
in interface JRMPInvokerMBean
public RMIServerSocketFactory getRMIServerSocketFactoryBean()
getRMIServerSocketFactoryBean
in interface JRMPInvokerMBean
public void setServerAddress(String address)
setServerAddress
in interface JRMPInvokerMBean
public String getServerAddress()
getServerAddress
in interface JRMPInvokerMBean
public void setSecurityDomain(String domainName)
setSecurityDomain
in interface JRMPInvokerMBean
public String getSecurityDomain()
getSecurityDomain
in interface JRMPInvokerMBean
public Serializable getStub()
protected void startService() throws Exception
Exception
protected void stopService() throws Exception
Exception
protected void destroyService() throws Exception
Exception
public Object invoke(Invocation invocation) throws Exception
invocation
- A pointer to the invocation object
Exception
- Failed to invoke method.protected Invoker createDelegateInvoker()
protected void exportCI() throws Exception
Exception
protected void unexportCI() throws Exception
Exception
protected void rebind(Context ctx, String name, Object val) throws NamingException
NamingException
protected void loadCustomSocketFactories()
protected Transaction importTPC(Object tpc)
Transaction
.
public String getName()
getName
in interface org.jboss.system.ServiceMBean
public javax.management.MBeanServer getServer()
public int getState()
getState
in interface org.jboss.system.ServiceMBean
public String getStateString()
getStateString
in interface org.jboss.system.ServiceMBean
public void create() throws Exception
create
in interface org.jboss.system.Service
Exception
public void start() throws Exception
start
in interface org.jboss.system.Service
Exception
public void stop()
stop
in interface org.jboss.system.Service
public void destroy()
destroy
in interface org.jboss.system.Service
public void jbossInternalLifecycle(String method) throws Exception
jbossInternalLifecycle
in interface org.jboss.system.ServiceMBean
Exception
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws Exception
preRegister
in interface javax.management.MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface javax.management.MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |