org.jboss.proxy.generic
Class ProxyFactoryHA

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.invocation.jrmp.server.JRMPProxyFactory (src) 
              extended byorg.jboss.proxy.generic.ProxyFactoryHA
All Implemented Interfaces:
DistributedReplicantManager.ReplicantListener (src) , JRMPProxyFactoryMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , ProxyFactoryHAMBean (src) , Service (src) , ServiceMBean (src)

public class ProxyFactoryHA
extends JRMPProxyFactory (src)
implements ProxyFactoryHAMBean (src) , DistributedReplicantManager.ReplicantListener (src)

ProxyFactory for Clustering


Field Summary
protected  DistributedReplicantManager (src) drm
           
protected  Invoker (src) invoker
           
protected  InvokerHA (src) invokerHA
           
protected  NotificationListener (src) listener
           
protected  java.lang.String loadBalancePolicy
           
protected  ObjectName (src) partitionObjectName
           
protected  java.lang.String replicantName
           
protected  int state
           
protected  HATarget (src) target
           
 
Fields inherited from class org.jboss.invocation.jrmp.server.JRMPProxyFactory (src)
theProxy
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
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(java.lang.Object cacheID, java.lang.String proxyBindingName, java.lang.ClassLoader loader, java.lang.Class[] ifaces)
           
 void createService()
          Sub-classes should override this method to provide custum 'create' logic.
 void destroyService()
          Sub-classes should override this method to provide custum 'destroy' logic.
 java.lang.String getLoadBalancePolicy()
           
 ObjectName (src) getPartitionObjectName()
           
 void replicantsChanged(java.lang.String key, java.util.List newReplicants, int newReplicantsViewId)
          Callback called when the content/list of replicant for a given replicant key has changed
 void setLoadBalancePolicy(java.lang.String loadBalancePolicy)
           
 void setPartitionObjectName(ObjectName (src)  partitionObjectName)
           
protected  void startService()
          Initializes the servlet.
 void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
Methods inherited from class org.jboss.invocation.jrmp.server.JRMPProxyFactory (src)
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 (src)
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, 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 (src)
getClientInterceptors, getExportedInterface, getExportedInterfaces, getInvokerName, getInvokeTargetMethod, getJndiName, getProxy, getTargetName, invoke, setClientInterceptors, setExportedInterface, setExportedInterfaces, setInvokerName, setInvokeTargetMethod, setJndiName, setTargetName
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Field Detail

replicantName

protected java.lang.String replicantName

invokerHA

protected InvokerHA (src)  invokerHA

target

protected HATarget (src)  target

invoker

protected Invoker (src)  invoker

drm

protected DistributedReplicantManager (src)  drm

partitionObjectName

protected ObjectName (src)  partitionObjectName

loadBalancePolicy

protected java.lang.String loadBalancePolicy

listener

protected NotificationListener (src)  listener

state

protected int state
Constructor Detail

ProxyFactoryHA

public ProxyFactoryHA()
Method Detail

getPartitionObjectName

public ObjectName (src)  getPartitionObjectName()
Specified by:
getPartitionObjectName in interface ProxyFactoryHAMBean (src)

setPartitionObjectName

public void setPartitionObjectName(ObjectName (src)  partitionObjectName)
Specified by:
setPartitionObjectName in interface ProxyFactoryHAMBean (src)

getLoadBalancePolicy

public java.lang.String getLoadBalancePolicy()
Specified by:
getLoadBalancePolicy in interface ProxyFactoryHAMBean (src)

setLoadBalancePolicy

public void setLoadBalancePolicy(java.lang.String loadBalancePolicy)
Specified by:
setLoadBalancePolicy in interface ProxyFactoryHAMBean (src)

createService

public void createService()
                   throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'create' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
createService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

startService

protected void startService()
                     throws java.lang.Exception
Description copied from class: JRMPProxyFactory (src)
Initializes the servlet.

Overrides:
startService in class JRMPProxyFactory (src)
Throws:
java.lang.Exception

stopService

public void stopService()
                 throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class JRMPProxyFactory (src)
Throws:
java.lang.Exception

destroyService

public void destroyService()
                    throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'destroy' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
destroyService in class JRMPProxyFactory (src)
Throws:
java.lang.Exception

containerIsFullyStarted

protected void containerIsFullyStarted()

containerIsAboutToStop

protected void containerIsAboutToStop()

replicantsChanged

public void replicantsChanged(java.lang.String key,
                              java.util.List newReplicants,
                              int newReplicantsViewId)
Description copied from interface: DistributedReplicantManager.ReplicantListener (src)
Callback called when the content/list of replicant for a given replicant key has changed

Specified by:
replicantsChanged in interface DistributedReplicantManager.ReplicantListener (src)
Parameters:
key - The name of the key of the replicant that has changed
newReplicants - The list of new replicants for the give replicant key
newReplicantsViewId - The new replicant view id corresponding to this change

createProxy

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