org.jboss.invocation.jrmp.server
Class JRMPInvokerHA
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
org.jboss.invocation.jrmp.server.JRMPInvoker
org.jboss.invocation.jrmp.server.JRMPInvokerHA
- All Implemented Interfaces:
- Serializable, Remote, MBeanRegistration, Invoker, InvokerHA, JRMPInvokerMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean
public class JRMPInvokerHA
- extends JRMPInvoker
- implements InvokerHA
The JRMPInvokerHA is an HA-RMI implementation that can generate Invocations from RMI/JRMP
into the JMX base
- Version:
- $Revision: 81001 $
- Author:
- Sacha Labourey., Scott.Stark@jboss.org, Galder Zamarreno
- See Also:
- Serialized Form
Fields inherited from class org.jboss.invocation.jrmp.server.JRMPInvoker |
ANONYMOUS_PORT, backlog, clientSocketFactory, clientSocketFactoryName, enableClassCaching, invokerStub, log, rmiPort, serverAddress, serverSocketFactory, serverSocketFactoryName, sslDomain, support |
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 |
JRMPInvokerHA()
Explicit no-args constructor. |
Methods inherited from class org.jboss.invocation.jrmp.server.JRMPInvoker |
create, createDelegateInvoker, destroy, destroyService, exportCI, getBacklog, getEnableClassCaching, getName, getRMIClientSocketFactory, getRMIClientSocketFactoryBean, getRMIObjectPort, getRMIServerSocketFactory, getRMIServerSocketFactoryBean, getSecurityDomain, getServer, getServerAddress, getServerHostName, getState, getStateString, getStub, importTPC, jbossInternalLifecycle, loadCustomSocketFactories, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, rebind, setBacklog, setEnableClassCaching, setKernelControllerContext, setRMIClientSocketFactory, setRMIClientSocketFactoryBean, setRMIObjectPort, setRMIServerSocketFactory, setRMIServerSocketFactoryBean, setSecurityDomain, setServerAddress, start, stop, unexportCI, unsetKernelControllerContext |
beanMap
protected HashMap beanMap
serviceName
protected ObjectName serviceName
JRMPInvokerHA
public JRMPInvokerHA()
- Explicit no-args constructor.
startService
protected void startService()
throws Exception
- Overrides:
startService
in class JRMPInvoker
- Throws:
Exception
stopService
protected void stopService()
throws Exception
- Overrides:
stopService
in class JRMPInvoker
- Throws:
Exception
registerBean
public void registerBean(ObjectName beanName,
org.jboss.ha.framework.server.HATarget target)
throws Exception
- Specified by:
registerBean
in interface InvokerHA
- Throws:
Exception
createProxy
public Invoker createProxy(ObjectName beanName,
LoadBalancePolicy policy,
String proxyFamilyName)
throws Exception
- Specified by:
createProxy
in interface InvokerHA
- Throws:
Exception
unregisterBean
public void unregisterBean(ObjectName beanName)
throws Exception
- Specified by:
unregisterBean
in interface InvokerHA
- Throws:
Exception
invoke
public Object invoke(Invocation invocation)
throws Exception
- Invoke a Remote interface method.
- Specified by:
invoke
in interface Invoker
- Overrides:
invoke
in class JRMPInvoker
- Throws:
Exception
getServiceName
public ObjectName getServiceName()
setServiceName
public void setServiceName(ObjectName serviceName)
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
- Specified by:
preRegister
in interface MBeanRegistration
- Overrides:
preRegister
in class JRMPInvoker
- Throws:
Exception
createProxy
protected Invoker createProxy(ArrayList targets,
LoadBalancePolicy policy,
String proxyFamilyName,
long viewId)
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.