Identifies the entities that an agent has added (via a join request) to
all its parent communities. This map is
compared to Community objects received from the various community
managers sending Community data to this agent. If a mismatch is detected
the agent will attempt to rectify by sending an join or leave request
to manager. A mismatch is likely the result of a community manager
termination/restart.
Method Summary
public synchronized void
add(String communityName, Entity entity) Add an entity to community.
public synchronized boolean contains(String communityName)(Code)
Check for existence of community.
Parameters: communityName - Name of community true if community exists
contains
public synchronized boolean contains(String communityName, String entityName)(Code)
Check for existence of entity in community.
Parameters: communityName - Name of community Parameters: entityName - Name of entity true if community exists and has entry for specified entity
Returns a Collection of Entity objects associated with named Community.
Parameters: communityName - Name of community Collection of Entity objects associated with named community
Get names of all parent communities.
Set of community names.
remove
public synchronized void remove(String communityName)(Code)
Remove community.
Parameters: communityName - Name of community to remove
remove
public synchronized void remove(String communityName, String entityName)(Code)
Remove entity from community. If community entry is empty after removal
of entity, the community is also removed.
Parameters: communityName - Name of parent community Parameters: entityName - Name of entity to remove