| Method from org.jboss.ha.framework.interfaces.FamilyClusterInfoImpl Detail: |
public boolean currentMembershipInSyncWithViewId() {
return this.isViewMembersInSyncWithViewId;
}
|
public boolean equals(Object o) {
if (o instanceof FamilyClusterInfoImpl)
{
FamilyClusterInfoImpl fr = (FamilyClusterInfoImpl)o;
return fr.familyName == this.familyName;
}
else
return false;
}
|
public long getCurrentViewId() {
return this.currentViewId;
}
|
public int getCursor() {
return this.cursor;
}
|
public String getFamilyName() {
return this.familyName;
}
|
public Object getObject() {
return this.arbitraryObject;
}
|
public ArrayList getTargets() {
return this.targets;
}
|
public int hashCode() {
return this.familyName.hashCode ();
}
|
public ArrayList removeDeadTarget(Object target) {
synchronized (this)
{
this.targets.remove (target);
this.isViewMembersInSyncWithViewId = false;
}
return this.targets;
}
|
public void resetView() {
this.currentViewId = -1;
this.isViewMembersInSyncWithViewId = false;
}
|
public int setCursor(int cursor) {
return (this.cursor = cursor);
}
|
public Object setObject(Object whatever) {
this.arbitraryObject = whatever; return this.arbitraryObject;
}
|
public String toString() {
StringBuffer tmp = new StringBuffer(super.toString());
tmp.append("{familyName=");
tmp.append(familyName);
tmp.append(",targets=");
tmp.append(targets);
tmp.append(",currentViewId=");
tmp.append(currentViewId);
tmp.append(",isViewMembersInSyncWithViewId=");
tmp.append(isViewMembersInSyncWithViewId);
tmp.append(",cursor=");
tmp.append(cursor);
tmp.append(",arbitraryObject=");
tmp.append(arbitraryObject);
tmp.append("}");
return tmp.toString();
}
|
public ArrayList updateClusterInfo(ArrayList targets,
long viewId) {
synchronized (this)
{
this.targets = targets;
this.currentViewId = viewId;
this.isViewMembersInSyncWithViewId = true;
}
return this.targets;
}
|