org.jboss.proxy.ejb
Class ProxyFactoryHA
java.lang.Object
org.jboss.proxy.ejb.ProxyFactory (src)
org.jboss.proxy.ejb.ProxyFactoryHA
- All Implemented Interfaces:
- AllowedOperationsFlags (src) , ClusterProxyFactory (src) , ContainerPlugin (src) , DistributedReplicantManager.ReplicantListener (src) , EJBProxyFactory (src) , GenericEntityObjectFactory (src) , Service (src)
- public class ProxyFactoryHA
- extends ProxyFactory (src)
- implements DistributedReplicantManager.ReplicantListener (src) , ClusterProxyFactory (src)
ProxyFactory for Clustering
Fields inherited from class org.jboss.proxy.ejb.ProxyFactory (src) |
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 (src) |
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 |
Method Summary |
protected void |
containerIsAboutToStop()
|
protected void |
containerIsFullyStarted()
|
void |
create()
create the service, do expensive operations etc |
void |
destroy()
destroy the service, tear down |
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 |
protected void |
setupInvokers()
Lookup the invokers in the object registry. |
void |
start()
Become fully available. |
Methods inherited from class org.jboss.proxy.ejb.ProxyFactory (src) |
bindProxy, getEJBHome, getEJBMetaData, getEntityCollection, getEntityEJBObject, getStatefulSessionEJBObject, getStatelessSessionEJBObject, initInterceptorClasses, isIdentical, loadInterceptorChain, loadInterceptorClasses, rebindHomeProxy, setContainer, setInvokerBinding, setInvokerMetaData, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Logger (src) log
replicantName
protected java.lang.String replicantName
jrmp
protected InvokerHA (src) jrmp
target
protected HATarget (src) target
drm
protected DistributedReplicantManager (src) drm
ProxyFactoryHA
public ProxyFactoryHA()
create
public void create()
throws java.lang.Exception
- Description copied from interface:
Service (src)
- create the service, do expensive operations etc
- Specified by:
create
in interface Service (src)
- Overrides:
create
in class ProxyFactory (src)
- Throws:
java.lang.Exception
start
public void start()
throws java.lang.Exception
- Description copied from class:
ProxyFactory (src)
- Become fully available. At this point our invokers should be started
and we can bind the homes into JNDI.
- Specified by:
start
in interface Service (src)
- Overrides:
start
in class ProxyFactory (src)
- Throws:
java.lang.Exception
setupInvokers
protected void setupInvokers()
throws java.lang.Exception
- Description copied from class:
ProxyFactory (src)
- Lookup the invokers in the object registry. This typically cannot
be done until our start method as the invokers may need to be started
themselves.
- Overrides:
setupInvokers
in class ProxyFactory (src)
- Throws:
java.lang.Exception
destroy
public void destroy()
- Description copied from interface:
Service (src)
- destroy the service, tear down
- Specified by:
destroy
in interface Service (src)
- Overrides:
destroy
in class ProxyFactory (src)
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 changednewReplicants
- The list of new replicants for the give replicant keynewReplicantsViewId
- The new replicant view id corresponding to this change