站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 cluster API Documentation 英文版文档

ProxyFactoryHA (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档


org.jboss.proxy.generic
Class ProxyFactoryHA

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

public class ProxyFactoryHA
extends org.jboss.invocation.jrmp.server.JRMPProxyFactory
implements ProxyFactoryHAMBean, DistributedReplicantManager.ReplicantListener

ProxyFactory for Clustering

Version:
$Revision: 1.3 $
Author:
Adrian Brock

Field Summary
protected  DistributedReplicantManager drm
           
protected  org.jboss.invocation.Invoker invoker
           
protected  InvokerHA invokerHA
           
protected  javax.management.NotificationListener listener
           
protected  String loadBalancePolicy
           
protected  javax.management.ObjectName partitionObjectName
           
protected  String replicantName
           
protected  int state
           
protected  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()
           
 void destroyService()
           
 String getLoadBalancePolicy()
           
 javax.management.ObjectName getPartitionObjectName()
           
 void replicantsChanged(String key, List newReplicants, int newReplicantsViewId)
          Callback called when the content/list of replicant for a given replicant key has changed
 void setLoadBalancePolicy(String loadBalancePolicy)
           
 void setPartitionObjectName(javax.management.ObjectName partitionObjectName)
           
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, 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
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
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 HATarget target

invoker

protected org.jboss.invocation.Invoker invoker

drm

protected DistributedReplicantManager drm

partitionObjectName

protected javax.management.ObjectName partitionObjectName

loadBalancePolicy

protected String loadBalancePolicy

listener

protected javax.management.NotificationListener listener

state

protected int state
Constructor Detail

ProxyFactoryHA

public ProxyFactoryHA()
Method Detail

getPartitionObjectName

public javax.management.ObjectName getPartitionObjectName()
Specified by:
getPartitionObjectName in interface ProxyFactoryHAMBean

setPartitionObjectName

public void setPartitionObjectName(javax.management.ObjectName partitionObjectName)
Specified by:
setPartitionObjectName 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
Throws:
Exception

startService

protected void startService()
                     throws Exception
Throws:
Exception

stopService

public void stopService()
                 throws Exception
Throws:
Exception

destroyService

public void destroyService()
                    throws Exception
Throws:
Exception

containerIsFullyStarted

protected void containerIsFullyStarted()

containerIsAboutToStop

protected void containerIsAboutToStop()

replicantsChanged

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

Specified by:
replicantsChanged in interface DistributedReplicantManager.ReplicantListener
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(Object cacheID,
                           String proxyBindingName,
                           ClassLoader loader,
                           Class[] ifaces)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.