org.jboss.ha.framework.interfaces
Class FamilyClusterInfoImpl

java.lang.Object
  extended by org.jboss.ha.framework.interfaces.FamilyClusterInfoImpl
All Implemented Interfaces:
FamilyClusterInfo

public class FamilyClusterInfoImpl
extends Object
implements FamilyClusterInfo

Default implementation of FamilyClusterInfo

Version:
$Revision: 57188 $
Author:
Sacha Labourey.
See Also:
FamilyClusterInfo, ClusteringTargetsRepository

Field Summary
 String familyName
           
 
Fields inherited from interface org.jboss.ha.framework.interfaces.FamilyClusterInfo
UNINITIALIZED_CURSOR
 
Constructor Summary
protected FamilyClusterInfoImpl(String familyName, ArrayList targets, long viewId)
           
 
Method Summary
 boolean currentMembershipInSyncWithViewId()
           
 boolean equals(Object o)
           
 long getCurrentViewId()
           
 int getCursor()
           
 String getFamilyName()
           
 Object getObject()
           
 ArrayList getTargets()
          Returns an immutable subclass of ArrayList.
 int hashCode()
           
 ArrayList removeDeadTarget(Object target)
          Remove the given target from the list of targets.
 void resetView()
          Force a reload of the view at the next invocation.
 int setCursor(int cursor)
           
 Object setObject(Object whatever)
           
 String toString()
           
 ArrayList updateClusterInfo(ArrayList targets, long viewId)
          Updates the targets and the view id.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

familyName

public String familyName
Constructor Detail

FamilyClusterInfoImpl

protected FamilyClusterInfoImpl(String familyName,
                                ArrayList targets,
                                long viewId)
Method Detail

getFamilyName

public String getFamilyName()
Specified by:
getFamilyName in interface FamilyClusterInfo

getTargets

public ArrayList getTargets()
Returns an immutable subclass of ArrayList.

Specified by:
getTargets in interface FamilyClusterInfo

getCurrentViewId

public long getCurrentViewId()
Specified by:
getCurrentViewId in interface FamilyClusterInfo

getCursor

public int getCursor()
Specified by:
getCursor in interface FamilyClusterInfo

setCursor

public int setCursor(int cursor)
Specified by:
setCursor in interface FamilyClusterInfo

getObject

public Object getObject()
Specified by:
getObject in interface FamilyClusterInfo

setObject

public Object setObject(Object whatever)
Specified by:
setObject in interface FamilyClusterInfo

removeDeadTarget

public ArrayList removeDeadTarget(Object target)
Description copied from interface: FamilyClusterInfo
Remove the given target from the list of targets. NOTE: Implementations should synchronize on themselves when executing this method (see JBAS-2071).

Specified by:
removeDeadTarget in interface FamilyClusterInfo
Parameters:
target - the target
Returns:
the updated list of targets

updateClusterInfo

public ArrayList updateClusterInfo(ArrayList targets,
                                   long viewId)
Description copied from interface: FamilyClusterInfo
Updates the targets and the view id. NOTE: Implementations should synchronize on themselves when executing this method (see JBAS-2071).

Specified by:
updateClusterInfo in interface FamilyClusterInfo

currentMembershipInSyncWithViewId

public boolean currentMembershipInSyncWithViewId()
Specified by:
currentMembershipInSyncWithViewId in interface FamilyClusterInfo

resetView

public void resetView()
Description copied from interface: FamilyClusterInfo
Force a reload of the view at the next invocation. NOTE: Implementations should synchronize on themselves when executing this method (see JBAS-2071).

Specified by:
resetView in interface FamilyClusterInfo

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


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