| java.lang.Object org.cougaar.community.AbstractCommunityService org.cougaar.community.DefaultCommunityServiceImpl
Inner Class :class FindManagerRequest | |
Inner Class :class ResponseHolder | |
Method Summary | |
public void | findCommunity(String communityName, FindCommunityCallback fccb, long timeout) Invokes callback when specified community is found.
Parameters: communityName - Name of community Parameters: fccb - Callback invoked after community is found or timeouthas lapsed Parameters: timeout - Length of time (in milliseconds) to wait forcommunity to be located. | public void | findManager(String communityName, FindCommunityCallback fccb, long tryUntil) | protected MessageAddress | getAgentId() | protected String | getAgentName() | protected CommunityManager | getCommunityManager() | protected ServiceBroker | getServiceBroker() | protected void | getSystemProperties() | protected UID | getUID() | protected void | handleResponse(Request req) Handle response to community request returned by manager. | public Collection | listAllCommunities() Lists all communities in White pages. | public void | listAllCommunities(CommunityResponseListener crl) | public Collection | listParentCommunities(String member, CommunityResponseListener crl) | protected Collection | listParentCommunitiesForLocalEntity(String member) | public Collection | listParentCommunitiesForRemoteEntity(String member, CommunityResponseListener crl) Create list of parent communities. | protected long | now() | protected void | queueCommunityRequest(String communityName, int requestType, Entity entity, ModificationItem[] attrMods, CommunityResponseListener crl, long timeout, long delay) Send a request to manager of specified community. | protected void | sendCommunityRequest(String communityName, int requestType, Entity entity, ModificationItem[] attrMods, long timeout, CommunityResponseListener crl) Send request to manager. | protected void | sendResponse(CommunityResponse resp, Set listeners) |
myBlackboardClient | protected MyBlackboardClient myBlackboardClient(Code) | | |
parentsForRemoteAgent | Map parentsForRemoteAgent(Code) | | |
verifyMembershipsInterval | protected long verifyMembershipsInterval(Code) | | |
DefaultCommunityServiceImpl | public DefaultCommunityServiceImpl(BindingSite bs)(Code) | | Constructor.
Parameters: bs - Agents BindingSite |
findCommunity | public void findCommunity(String communityName, FindCommunityCallback fccb, long timeout)(Code) | | Invokes callback when specified community is found.
Parameters: communityName - Name of community Parameters: fccb - Callback invoked after community is found or timeouthas lapsed Parameters: timeout - Length of time (in milliseconds) to wait forcommunity to be located. A value of -1 disablesthe timeout. |
getSystemProperties | protected void getSystemProperties()(Code) | | |
handleResponse | protected void handleResponse(Request req)(Code) | | Handle response to community request returned by manager.
Parameters: req - Request |
listAllCommunities | public Collection listAllCommunities()(Code) | | Lists all communities in White pages.
Collection of community names |
listParentCommunitiesForLocalEntity | protected Collection listParentCommunitiesForLocalEntity(String member)(Code) | | |
listParentCommunitiesForRemoteEntity | public Collection listParentCommunitiesForRemoteEntity(String member, CommunityResponseListener crl)(Code) | | Create list of parent communities. For local agent this can easily be
obtained from cache. For any other agent/community a request must be sent
to the agent or community manager.
Parameters: member - String Parameters: crl - CommunityResponseListener Collection |
queueCommunityRequest | protected void queueCommunityRequest(String communityName, int requestType, Entity entity, ModificationItem[] attrMods, CommunityResponseListener crl, long timeout, long delay)(Code) | | Send a request to manager of specified community.
Parameters: communityName - String Parameters: requestType - int Parameters: entity - Entity Parameters: attrMods - ModificationItem[] Parameters: crl - CommunityResponseListener Parameters: delay - Defines how long to wait before processing request, a valueof 0 or < 1 indicates that the request should be processed immediately |
sendCommunityRequest | protected void sendCommunityRequest(String communityName, int requestType, Entity entity, ModificationItem[] attrMods, long timeout, CommunityResponseListener crl)(Code) | | Send request to manager.
Parameters: communityName - String Parameters: requestType - int Parameters: entity - Entity Parameters: attrMods - ModificationItem[] Parameters: crl - CommunityResponseListener |
Methods inherited from org.cougaar.community.AbstractCommunityService | public void addListener(CommunityChangeListener l)(Code)(Java Doc) protected void addParentAttribute(Community community, String parent)(Code)(Java Doc) public void createCommunity(String communityName, Attributes attrs, CommunityResponseListener crl)(Code)(Java Doc) abstract public void findCommunity(String communityName, FindCommunityCallback fccb, long timeout)(Code)(Java Doc) abstract protected String getAgentName()(Code)(Java Doc) public Community getCommunity(String communityName, CommunityResponseListener crl)(Code)(Java Doc) protected Collection getMatches(String communityName, String filter)(Code)(Java Doc) public String[] getParentCommunities(boolean allLevels)(Code)(Java Doc) protected void handleResponse(String communityName, CommunityResponse resp, Set listeners)(Code)(Java Doc) public void joinCommunity(String communityName, String entityName, int entityType, Attributes entityAttrs, boolean createIfNotFound, Attributes newCommunityAttrs, long timeout, CommunityResponseListener crl)(Code)(Java Doc) public void joinCommunity(String communityName, String entityName, int entityType, Attributes entityAttrs, boolean createIfNotFound, Attributes newCommunityAttrs, CommunityResponseListener crl)(Code)(Java Doc) public void leaveCommunity(String communityName, String entityName, CommunityResponseListener crl)(Code)(Java Doc) public void leaveCommunity(String communityName, String entityName, long timeout, CommunityResponseListener crl)(Code)(Java Doc) abstract public Collection listAllCommunities()(Code)(Java Doc) abstract public void listAllCommunities(CommunityResponseListener crl)(Code)(Java Doc) public Collection listParentCommunities(String member, String filter, CommunityResponseListener crl)(Code)(Java Doc) public Collection listParentCommunities(String member)(Code)(Java Doc) public Collection listParentCommunities(String member, String filter)(Code)(Java Doc) public void modifyAttributes(String communityName, String entityName, ModificationItem[] mods, CommunityResponseListener crl)(Code)(Java Doc) abstract protected void queueCommunityRequest(String communityName, int requestType, Entity entity, ModificationItem[] attrMods, CommunityResponseListener crl, long timeout, long delay)(Code)(Java Doc) public void removeListener(CommunityChangeListener l)(Code)(Java Doc) protected void removeParentAttribute(Community community, String parent)(Code)(Java Doc) public Collection search(String communityName, String filter)(Code)(Java Doc) public Collection searchCommunity(String communityName, String searchFilter, boolean recursiveSearch, int resultQualifier, CommunityResponseListener crl)(Code)(Java Doc) abstract protected void sendResponse(CommunityResponse resp, Set listeners)(Code)(Java Doc)
|
|
|