| java.lang.Object org.cougaar.community.manager.AbstractCommunityManager org.cougaar.community.manager.DefaultCommunityManagerImpl
DefaultCommunityManagerImpl | public class DefaultCommunityManagerImpl extends AbstractCommunityManager implements CommunityServiceConstants(Code) | | Concrete implementation of CommunityManager interface that uses Blackboard
Relays to perform communication with remote nodes/agents.
|
communitiesToCheck | protected Set communitiesToCheck(Code) | | |
includeDescriptorInResponse | protected boolean includeDescriptorInResponse(Code) | | |
managedCommunities | protected Set managedCommunities(Code) | | |
myBlackboardClient | protected MyBlackboardClient myBlackboardClient(Code) | | |
verifyInterval | protected long verifyInterval(Code) | | |
DefaultCommunityManagerImpl | public DefaultCommunityManagerImpl(BindingSite bs, AbstractCommunityService acs, CommunityUpdateListener cul)(Code) | | Construct CommunityManager component capable of communicating with remote
agents via Blackboard Relays.
Parameters: bs - BindingSite Parameters: acs - CommunityService reference Parameters: cul - Listener for local updates |
addTargets | 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 (String) to add to distribution |
assertCommunityManagerRole | protected void assertCommunityManagerRole(String communityName)(Code) | | Asserts community manager role.
Parameters: communityName - Community to manage |
assertCommunityManagerRole | protected void assertCommunityManagerRole(String communityName, Callback callback)(Code) | | |
assertCommunityManagerRole | protected void assertCommunityManagerRole(String communityName, boolean override)(Code) | | Asserts community manager role by binding address to community name in
White Pages
Parameters: communityName - Community to manage Parameters: override - If true any existing binding will be removedand replaced with new |
assertCommunityManagerRole | protected void assertCommunityManagerRole(String communityName, boolean override, Callback callback)(Code) | | Asserts community manager role by binding address to community name in
White Pages
Parameters: communityName - Community to manage Parameters: override - If true any existing binding will be removed and replaced with new Parameters: callback - Invoked when the assertion is completed |
distributeUpdates | protected void distributeUpdates(String communityName)(Code) | | Send updated Community info to agents on distribution.
Parameters: communityName - Name of community |
findManager | public void findManager(String communityName, FindCommunityCallback fmcb)(Code) | | Get name of community manager.
Parameters: communityName - String Parameters: fmcb - FindManagerCallback |
getCommunityAccessManager | protected CommunityAccessManager getCommunityAccessManager()(Code) | | Create a new CommunityAccessManager.
CommunityAccessManager |
getSystemProperties | protected void getSystemProperties()(Code) | | |
isManager | protected boolean isManager(String communityName)(Code) | | Tests whether this agent is the manager for the specified community.
Parameters: communityName - String boolean |
processRequest | protected void processRequest(Request req)(Code) | | Processes Requests received via Relay.
Parameters: req - Request |
removeTargets | 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 (String) to remove from distribution |
Methods inherited from org.cougaar.community.manager.AbstractCommunityManager | abstract protected void addTargets(String communityName, Set targets)(Code)(Java Doc) protected void applyAttrMods(Attributes attrs, ModificationItem[] mods)(Code)(Java Doc) abstract protected void assertCommunityManagerRole(String communityName)(Code)(Java Doc) abstract protected void assertCommunityManagerRole(String communityName, Callback callback)(Code)(Java Doc) protected String attrsToString(Attributes attrs)(Code)(Java Doc) abstract protected void distributeUpdates(String communityName)(Code)(Java Doc) protected String entityNames(Collection entities)(Code)(Java Doc) protected synchronized CommunityResponse handleRequest(String source, String communityName, int reqType, Entity entity, ModificationItem[] attrMods)(Code)(Java Doc) abstract protected boolean isManager(String communityName)(Code)(Java Doc) public void manageCommunity(Community community)(Code)(Java Doc) public void manageCommunity(Community community, Callback callback)(Code)(Java Doc) public CommunityResponse processRequest(String source, String communityName, int reqType, Entity entity, ModificationItem[] attrMods)(Code)(Java Doc) abstract protected void removeTargets(String communityName, Set targets)(Code)(Java Doc)
|
|
|