| 
 | |||||||||||
| 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_PORTIdentifer to instruct the usage of an anonymous port. | 
| protected  int | backlogThe socket accept backlog | 
| protected  RMIClientSocketFactory | clientSocketFactoryAn optional custom client socket factory | 
| protected  String | clientSocketFactoryNameThe class name of the optional custom client socket factory | 
| protected  boolean | enableClassCachingA flag to enable caching of classes in the MarshalledValueInputStream | 
| protected  RemoteStub | invokerStub | 
| protected  org.jboss.logging.Logger | logInstance logger. | 
| protected  int | rmiPortThe port the container will be exported on | 
| protected  String | serverAddressThe address to bind the rmi port on | 
| protected  RMIServerSocketFactory | serverSocketFactoryAn optional custom server socket factory | 
| protected  String | serverSocketFactoryNameThe class name of the optional custom server socket factory | 
| protected  String | sslDomainThe name of the security domain to use with server sockets that support SSL | 
| protected  org.jboss.system.ServiceMBeanSupport | supportService 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 JRMPInvokerMBeanpublic void setBacklog(int back)
setBacklog in interface JRMPInvokerMBeanpublic boolean getEnableClassCaching()
getEnableClassCaching in interface JRMPInvokerMBeanpublic void setEnableClassCaching(boolean flag)
setEnableClassCaching in interface JRMPInvokerMBeanpublic String getServerHostName()
Invoker
getServerHostName in interface Invokerpublic void setRMIObjectPort(int rmiPort)
setRMIObjectPort in interface JRMPInvokerMBeanpublic int getRMIObjectPort()
getRMIObjectPort in interface JRMPInvokerMBeanpublic void setRMIClientSocketFactory(String name)
setRMIClientSocketFactory in interface JRMPInvokerMBeanpublic String getRMIClientSocketFactory()
getRMIClientSocketFactory in interface JRMPInvokerMBeanpublic void setRMIClientSocketFactoryBean(RMIClientSocketFactory bean)
setRMIClientSocketFactoryBean in interface JRMPInvokerMBeanpublic RMIClientSocketFactory getRMIClientSocketFactoryBean()
getRMIClientSocketFactoryBean in interface JRMPInvokerMBeanpublic void setRMIServerSocketFactory(String name)
setRMIServerSocketFactory in interface JRMPInvokerMBeanpublic String getRMIServerSocketFactory()
getRMIServerSocketFactory in interface JRMPInvokerMBeanpublic void setRMIServerSocketFactoryBean(RMIServerSocketFactory bean)
setRMIServerSocketFactoryBean in interface JRMPInvokerMBeanpublic RMIServerSocketFactory getRMIServerSocketFactoryBean()
getRMIServerSocketFactoryBean in interface JRMPInvokerMBeanpublic void setServerAddress(String address)
setServerAddress in interface JRMPInvokerMBeanpublic String getServerAddress()
getServerAddress in interface JRMPInvokerMBeanpublic void setSecurityDomain(String domainName)
setSecurityDomain in interface JRMPInvokerMBeanpublic String getSecurityDomain()
getSecurityDomain in interface JRMPInvokerMBeanpublic Serializable getStub()
protected void startService()
                     throws Exception
Exception
protected void stopService()
                    throws Exception
Exception
protected void destroyService()
                       throws Exception
Exceptionpublic 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
Exceptionprotected void rebind(Context ctx, String name, Object val) throws NamingException
NamingExceptionprotected void loadCustomSocketFactories()
protected Transaction importTPC(Object tpc)
Transaction.
public String getName()
getName in interface org.jboss.system.ServiceMBeanpublic javax.management.MBeanServer getServer()
public int getState()
getState in interface org.jboss.system.ServiceMBeanpublic String getStateString()
getStateString in interface org.jboss.system.ServiceMBean
public void create()
            throws Exception
create in interface org.jboss.system.ServiceException
public void start()
           throws Exception
start in interface org.jboss.system.ServiceExceptionpublic void stop()
stop in interface org.jboss.system.Servicepublic void destroy()
destroy in interface org.jboss.system.Servicepublic void jbossInternalLifecycle(String method) throws Exception
jbossInternalLifecycle in interface org.jboss.system.ServiceMBeanException
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws Exception
preRegister in interface javax.management.MBeanRegistrationExceptionpublic void postRegister(Boolean registrationDone)
postRegister in interface javax.management.MBeanRegistration
public void preDeregister()
                   throws Exception
preDeregister in interface javax.management.MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface javax.management.MBeanRegistration| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||