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

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


org.jboss.ha.framework.interfaces
Class HARMIClient

java.lang.Object
  extended byorg.jboss.ha.framework.interfaces.HARMIClient
All Implemented Interfaces:
HARMIProxy, InvocationHandler, Serializable

public class HARMIClient
extends Object
implements HARMIProxy, InvocationHandler, Serializable

Version:
$Revision: 1.11 $
Author:
Sacha Labourey, Bill Burke
See Also:
Serialized Form

Field Summary
protected  String key
           
protected  LoadBalancePolicy loadBalancePolicy
           
protected  Object local
           
 
Constructor Summary
HARMIClient()
           
HARMIClient(ArrayList targets, LoadBalancePolicy policy, String key)
           
HARMIClient(ArrayList targets, long initViewId, LoadBalancePolicy policy, String key, Object local)
           
 
Method Summary
 Method findLocalMethod(Method method, Object[] args)
           
 Object getRemoteTarget()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 Object invokeRemote(Object proxy, Method method, Object[] args)
           
 boolean isLocal()
           
 void remoteTargetHasFailed(Object target)
           
protected  void removeDeadTarget(Object target)
           
 void updateClusterInfo(ArrayList targets, long viewId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected String key

loadBalancePolicy

protected LoadBalancePolicy loadBalancePolicy

local

protected transient Object local
Constructor Detail

HARMIClient

public HARMIClient()

HARMIClient

public HARMIClient(ArrayList targets,
                   LoadBalancePolicy policy,
                   String key)

HARMIClient

public HARMIClient(ArrayList targets,
                   long initViewId,
                   LoadBalancePolicy policy,
                   String key,
                   Object local)
Method Detail

updateClusterInfo

public void updateClusterInfo(ArrayList targets,
                              long viewId)

getRemoteTarget

public Object getRemoteTarget()

remoteTargetHasFailed

public void remoteTargetHasFailed(Object target)

findLocalMethod

public Method findLocalMethod(Method method,
                              Object[] args)
                       throws Exception
Throws:
Exception

invokeRemote

public Object invokeRemote(Object proxy,
                           Method method,
                           Object[] args)
                    throws Throwable
Throws:
Throwable

isLocal

public boolean isLocal()
Specified by:
isLocal in interface HARMIProxy

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

removeDeadTarget

protected void removeDeadTarget(Object target)


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