| java.lang.Object org.cougaar.community.manager.CommunityDistributer
CommunityDistributer | public class CommunityDistributer implements CommunityServiceConstants(Code) | | Helper class used to distribute new/updated CommunityDescriptor objects to
interested nodes and agents.
|
Inner Class :class DescriptorEntry | |
CommunityDistributer | public CommunityDistributer(BindingSite bs, boolean nodesOnly, CommunityUpdateListener cul, Map communities)(Code) | | Constructor.
Parameters: bs - BindingSite from CommunityManager. Parameters: nodesOnly - True if CommunityDescriptors are only sent to nodeagents Parameters: cul - Listener object to receive community descriptor updates Parameters: communities - Communities managed by CommunityManager |
add | protected void add(String communityName, Set agents)(Code) | | Enable automatic update of CommunityDescriptors for named community.
Parameters: communityName - Community to update Parameters: agents - Initial set of targets |
add | protected void add(RelayAdapter ra)(Code) | | Enable automatic update of CommunityDescriptors for named community.
Parameters: ra - RelayAdapter associated with previously created CommunityDescriptor |
addTargets | protected void addTargets(String communityName, Set targets)(Code) | | Adds new targets to receive CommunityDescriptor updates.
Parameters: communityName - Community Parameters: targets - New targets |
contains | protected boolean contains(String communityName)(Code) | | |
get | protected CommunityDescriptor get(String communityName)(Code) | | Get CommunityDescriptor associated with named community.
Parameters: communityName - Name of community CommunityDescriptor for community |
getSystemProperties | protected void getSystemProperties()(Code) | | |
getUID | protected UID getUID()(Code) | | Get Unique identifier.
Unique ID |
remove | protected void remove(String communityName)(Code) | | Disables CommunityDescriptor updates for named community. If a
CommunityDescriptor Relay was previously published it is rescinded via
a blackboard publishRemove.
Parameters: communityName - Name of community |
removeTargets | protected void removeTargets(String communityName, Set agentNames)(Code) | | Removes targets to receive CommunityDescriptor updates.
Parameters: communityName - Community Parameters: agentNames - Targets to remove |
update | protected void update(String communityName)(Code) | | Notify targets of a change in community state.
Parameters: communityName - Name of changed community |
update | protected void update(String communityName, int type, String what)(Code) | | Notify targets of a change in community state.
Parameters: communityName - Name of changed community Parameters: type - Type of change Parameters: what - Entity affected by change |
|
|