org.jboss.invocation.jrmp.server
Class JRMPInvokerHA

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by org.jboss.invocation.jrmp.server.JRMPInvoker
              extended by 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

Field Summary
protected  HashMap beanMap
           
protected  ObjectName serviceName
           
 
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 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
JRMPInvokerHA()
          Explicit no-args constructor.
 
Method Summary
protected  Invoker createProxy(ArrayList targets, LoadBalancePolicy policy, String proxyFamilyName, long viewId)
           
 Invoker createProxy(ObjectName beanName, LoadBalancePolicy policy, String proxyFamilyName)
           
 ObjectName getServiceName()
           
 Object invoke(Invocation invocation)
          Invoke a Remote interface method.
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
 void registerBean(ObjectName beanName, org.jboss.ha.framework.server.HATarget target)
           
 void setServiceName(ObjectName serviceName)
           
protected  void startService()
           
protected  void stopService()
           
 void unregisterBean(ObjectName beanName)
           
 
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
 
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
 
Methods inherited from interface org.jboss.invocation.InvokerHA
getStub
 

Field Detail

beanMap

protected HashMap beanMap

serviceName

protected ObjectName serviceName
Constructor Detail

JRMPInvokerHA

public JRMPInvokerHA()
Explicit no-args constructor.

Method Detail

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.