Methods Summary |
---|
public boolean | currentMembershipInSyncWithViewId()
return this.isViewMembersInSyncWithViewId;
|
public boolean | equals(java.lang.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 java.lang.String | getFamilyName() return this.familyName;
|
public java.lang.Object | getObject() return this.arbitraryObject;
|
public synchronized java.util.ArrayList | getTargets()Returns an immutable subclass of ArrayList.
return new ImmutableArrayList(this.targets);
|
public int | hashCode()
return this.familyName.hashCode ();
|
public java.util.ArrayList | removeDeadTarget(java.lang.Object target)
synchronized (this)
{
ArrayList tmp = (ArrayList) targets.clone();
tmp.remove (target);
this.targets = tmp;
this.isViewMembersInSyncWithViewId = false;
return new ImmutableArrayList(this.targets);
}
|
public void | resetView()
synchronized (this)
{
this.currentViewId = -1;
this.isViewMembersInSyncWithViewId = false;
}
|
public int | setCursor(int cursor) return (this.cursor = cursor);
|
public java.lang.Object | setObject(java.lang.Object whatever) this.arbitraryObject = whatever; return this.arbitraryObject;
|
public java.lang.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 java.util.ArrayList | updateClusterInfo(java.util.ArrayList targets, long viewId)
synchronized (this)
{
this.targets = (ArrayList) targets.clone();
this.currentViewId = viewId;
this.isViewMembersInSyncWithViewId = true;
return new ImmutableArrayList(this.targets);
}
|