org.jboss.proxy.generic
Class ProxyFactoryHA

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.invocation.jrmp.server.JRMPProxyFactory
              extended by org.jboss.proxy.generic.ProxyFactoryHA
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener, JRMPProxyFactoryMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ProxyFactoryHAMBean, Service, ServiceMBean

public class ProxyFactoryHA
extends JRMPProxyFactory
implements ProxyFactoryHAMBean, org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener

ProxyFactory for Clustering

Version:
$Revision: 82169 $
Author:
Adrian Brock

Field Summary
protected  org.jboss.ha.framework.interfaces.DistributedReplicantManager drm
           
protected  Invoker invoker
           
protected  InvokerHA invokerHA
           
protected  NotificationListener listener
           
protected  String loadBalancePolicy
           
protected  org.jboss.ha.framework.interfaces.HAPartition partition
           
protected  String replicantName
           
protected  int state
           
protected  org.jboss.ha.framework.server.HATarget target
           
 
Fields inherited from class org.jboss.invocation.jrmp.server.JRMPProxyFactory
theProxy
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
ProxyFactoryHA()
           
 
Method Summary
protected  void containerIsAboutToStop()
           
protected  void containerIsFullyStarted()
           
protected  void createProxy(Object cacheID, String proxyBindingName, ClassLoader loader, Class[] ifaces)
           
 void createService()
           
protected  void destroyService()
           
 String getLoadBalancePolicy()
           
 org.jboss.ha.framework.interfaces.HAPartition getPartition()
           
 void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge)
           
 void setLoadBalancePolicy(String loadBalancePolicy)
           
 void setPartition(org.jboss.ha.framework.interfaces.HAPartition partition)
           
protected  void startService()
           
 void stopService()
           
 
Methods inherited from class org.jboss.invocation.jrmp.server.JRMPProxyFactory
getClientInterceptors, getExportedInterface, getExportedInterfaces, getInterceptorClasses, getInvokerName, getInvokeTargetMethod, getJndiName, getProxy, getTargetName, invoke, rebind, setClientInterceptors, setExportedInterface, setExportedInterfaces, setInvokerName, setInvokeTargetMethod, setJndiName, setTargetName
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.invocation.jrmp.server.JRMPProxyFactoryMBean
getClientInterceptors, getExportedInterface, getExportedInterfaces, getInvokerName, getInvokeTargetMethod, getJndiName, getProxy, getTargetName, invoke, setClientInterceptors, setExportedInterface, setExportedInterfaces, setInvokerName, setInvokeTargetMethod, setJndiName, setTargetName
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

replicantName

protected String replicantName

invokerHA

protected InvokerHA invokerHA

target

protected org.jboss.ha.framework.server.HATarget target

invoker

protected Invoker invoker

drm

protected org.jboss.ha.framework.interfaces.DistributedReplicantManager drm

partition

protected org.jboss.ha.framework.interfaces.HAPartition partition

loadBalancePolicy

protected String loadBalancePolicy

listener

protected NotificationListener listener

state

protected int state
Constructor Detail

ProxyFactoryHA

public ProxyFactoryHA()
Method Detail

getPartition

public org.jboss.ha.framework.interfaces.HAPartition getPartition()
Specified by:
getPartition in interface ProxyFactoryHAMBean

setPartition

public void setPartition(org.jboss.ha.framework.interfaces.HAPartition partition)
Specified by:
setPartition in interface ProxyFactoryHAMBean

getLoadBalancePolicy

public String getLoadBalancePolicy()
Specified by:
getLoadBalancePolicy in interface ProxyFactoryHAMBean

setLoadBalancePolicy

public void setLoadBalancePolicy(String loadBalancePolicy)
Specified by:
setLoadBalancePolicy in interface ProxyFactoryHAMBean

createService

public void createService()
                   throws Exception
Overrides:
createService in class ServiceMBeanSupport
Throws:
Exception

startService

protected void startService()
                     throws Exception
Overrides:
startService in class JRMPProxyFactory
Throws:
Exception

stopService

public void stopService()
                 throws Exception
Overrides:
stopService in class JRMPProxyFactory
Throws:
Exception

destroyService

protected void destroyService()
                       throws Exception
Overrides:
destroyService in class JRMPProxyFactory
Throws:
Exception

containerIsFullyStarted

protected void containerIsFullyStarted()

containerIsAboutToStop

protected void containerIsAboutToStop()

replicantsChanged

public void replicantsChanged(String key,
                              List newReplicants,
                              int newReplicantsViewId,
                              boolean merge)
Specified by:
replicantsChanged in interface org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener

createProxy

protected void createProxy(Object cacheID,
                           String proxyBindingName,
                           ClassLoader loader,
                           Class[] ifaces)
Overrides:
createProxy in class JRMPProxyFactory


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.