| java.lang.Object org.cougaar.community.manager.AbstractCommunityManager
All known Subclasses: org.cougaar.community.manager.DefaultCommunityManagerImpl, org.cougaar.community.test.CommunityManagerTestImpl,
AbstractCommunityManager | abstract public class AbstractCommunityManager implements CommunityManager,CommunityServiceConstants(Code) | | Base class for CommunityManager that can manager one or more communities.
Handles requests to join and leave a community. Disseminates community
descriptors to community members and other interested agents.
|
Method Summary | |
abstract protected void | addTargets(String communityName, Set targets) Add agents to distribution list for community updates. | protected void | applyAttrMods(Attributes attrs, ModificationItem[] mods) Apply attribute modifications. | abstract protected void | assertCommunityManagerRole(String communityName) Asserts community manager role. | abstract protected void | assertCommunityManagerRole(String communityName, Callback callback) | protected String | attrsToString(Attributes attrs) Creates a string representation of an Attribute set. | abstract protected void | distributeUpdates(String communityName) Send updated Community info to agents on distribution. | protected String | entityNames(Collection entities) | protected synchronized CommunityResponse | handleRequest(String source, String communityName, int reqType, Entity entity, ModificationItem[] attrMods) | abstract protected boolean | isManager(String communityName) Tests whether this agent is the manager for the specified community. | public void | manageCommunity(Community community) Adds a community to be managed by this community manager. | public void | manageCommunity(Community community, Callback callback) Adds a community to be managed by this community manager. | public CommunityResponse | processRequest(String source, String communityName, int reqType, Entity entity, ModificationItem[] attrMods) | abstract protected void | removeTargets(String communityName, Set targets) Remove agents from distribution list for community updates. |
addTargets | abstract protected void addTargets(String communityName, Set targets)(Code) | | Add agents to distribution list for community updates.
Parameters: communityName - Name of community Parameters: targets - Set of agent names to add to distribution |
applyAttrMods | protected void applyAttrMods(Attributes attrs, ModificationItem[] mods)(Code) | | Apply attribute modifications.
Parameters: attrs - Attributes to be modified Parameters: mods - Changes |
assertCommunityManagerRole | abstract protected void assertCommunityManagerRole(String communityName)(Code) | | Asserts community manager role.
Parameters: communityName - Community to manage |
assertCommunityManagerRole | abstract protected void assertCommunityManagerRole(String communityName, Callback callback)(Code) | | asserts a community manager role in the WP and invokes a callback when the bind
is complete
Parameters: communityName - Community to manage Parameters: callback - callback to invoke on completion |
attrsToString | protected String attrsToString(Attributes attrs)(Code) | | Creates a string representation of an Attribute set.
Parameters: attrs - Attributes to convert to String String representation of attributes |
distributeUpdates | abstract protected void distributeUpdates(String communityName)(Code) | | Send updated Community info to agents on distribution.
Parameters: communityName - Name of community |
isManager | abstract protected boolean isManager(String communityName)(Code) | | Tests whether this agent is the manager for the specified community.
Parameters: communityName - String boolean |
manageCommunity | public void manageCommunity(Community community)(Code) | | Adds a community to be managed by this community manager.
Parameters: community - Community to manage |
manageCommunity | public void manageCommunity(Community community, Callback callback)(Code) | | Adds a community to be managed by this community manager.
Parameters: community - Community to manage Parameters: callback - Callback to invoke on completion |
removeTargets | abstract protected void removeTargets(String communityName, Set targets)(Code) | | Remove agents from distribution list for community updates.
Parameters: communityName - Name of community Parameters: targets - Set of agent names to remove |
|
|