org.jboss.ha.framework.interfaces
Class HARMIClient

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

public class HARMIClient
extends Object
implements HARMIProxy, InvocationHandler, Serializable

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

Field Summary
protected static Method EQUALS
          Object.equals(java.lang.Object) method reference.
protected static Method HASH_CODE
          Object.hashCode() method reference.
protected  String key
           
protected  LoadBalancePolicy loadBalancePolicy
           
protected  Object local
           
protected static Method TO_STRING
          Object.toString() method reference.
protected  boolean trace
           
 
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

TO_STRING

protected static final Method TO_STRING
Object.toString() method reference.


HASH_CODE

protected static final Method HASH_CODE
Object.hashCode() method reference.


EQUALS

protected static final Method EQUALS
Object.equals(java.lang.Object) method reference.


key

protected String key

loadBalancePolicy

protected LoadBalancePolicy loadBalancePolicy

local

protected transient Object local

trace

protected transient boolean trace
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.