org.jboss.proxy.ejb
Class ProxyFactoryHA

java.lang.Object
  extended by org.jboss.proxy.ejb.ProxyFactory
      extended by org.jboss.proxy.ejb.ProxyFactoryHA
All Implemented Interfaces:
AllowedOperationsFlags, ContainerPlugin, EJBProxyFactory, GenericEntityObjectFactory, org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener, ClusterProxyFactory, Service

public class ProxyFactoryHA
extends ProxyFactory
implements org.jboss.ha.framework.interfaces.DistributedReplicantManager.ReplicantListener, ClusterProxyFactory

ProxyFactory for Clustering

Version:
$Revision: 81001 $

Revisions:

2002/01/13: billb

  1. Initial Revisition

2002/08/24: Sacha Labourey

  1. Added a "Proxy Family" string that identifies, for a same HATarget, different families of proxies (remote, home, etc.) that may each have its own client behaviour (round robin, etc.) => each needs its own id in the Proxy Family Repository on the client side
Author:
Bill Burke

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.ejb.GenericEntityObjectFactory
GenericEntityObjectFactory.UTIL
 
Field Summary
protected  org.jboss.ha.framework.interfaces.DistributedReplicantManager drm
           
protected  InvokerHA jrmp
           
protected static Logger log
           
protected  String replicantName
           
protected  org.jboss.ha.framework.server.HATarget target
           
 
Fields inherited from class org.jboss.proxy.ejb.ProxyFactory
BEAN_INTERCEPTOR, beanInterceptorClasses, beanInvoker, container, ejbMetaData, home, HOME_INTERCEPTOR, homeInterceptorClasses, homeInvoker, includeIClientIface, invokerMetaData, isServiceEndpointOnly, jmxName, jmxNameHash, jndiBinding, LIST_ENTITY_INTERCEPTOR, listEntityInterceptorClasses, proxyClassConstructor, statelessObject
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED
 
Constructor Summary
ProxyFactoryHA()
           
 
Method Summary
protected  void containerIsAboutToStop()
           
protected  void containerIsFullyStarted()
           
 void create()
           
 void destroy()
           
 void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge)
           
protected  void setupInvokers()
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.proxy.ejb.ProxyFactory
bindProxy, getEJBHome, getEJBMetaData, getEntityCollection, getEntityEJBObject, getStatefulSessionEJBObject, getStatelessSessionEJBObject, initInterceptorClasses, isIdentical, loadInterceptorChain, loadInterceptorClasses, rebindHomeProxy, setContainer, setInvokerBinding, setInvokerMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Logger log

replicantName

protected String replicantName

jrmp

protected InvokerHA jrmp

target

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

drm

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

ProxyFactoryHA

public ProxyFactoryHA()
Method Detail

create

public void create()
            throws Exception
Specified by:
create in interface Service
Overrides:
create in class ProxyFactory
Throws:
Exception

start

public void start()
           throws Exception
Specified by:
start in interface Service
Overrides:
start in class ProxyFactory
Throws:
Exception

setupInvokers

protected void setupInvokers()
                      throws Exception
Overrides:
setupInvokers in class ProxyFactory
Throws:
Exception

stop

public void stop()
Specified by:
stop in interface Service
Overrides:
stop in class ProxyFactory

destroy

public void destroy()
Specified by:
destroy in interface Service
Overrides:
destroy in class ProxyFactory

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


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