| org.cougaar.yp.YPService
Inner Class :interface NextContextCallback | |
Method Summary | |
YPProxy | getAutoYP(String ypAgent) List #getYP(String), except submits the request before returning the
YPFuture value. | YPProxy | getAutoYP(MessageAddress ypAgent) List #getYP(String), except submits the request before returning the
YPFuture value. | YPProxy | getAutoYP(Community community) List #getYP(String), except submits the request before returning the
YPFuture value. | YPProxy | getYP(String ypAgent) Get a Proxy for YP Queries from a specific YPServer. | YPProxy | getYP(MessageAddress ypAgent) Get a Proxy for YP Queries from a specific YPServer. | YPProxy | getYP(Community community) Get a Proxy for YP Queries in a specific community context. | YPProxy | getYP(Community community, int searchMode) Get a Proxy for YP Queries in a specific community context. | YPProxy | getYP() Get a Proxy for YP Queries in the default community context - i.e. | YPProxy | getYP(int searchMode) Get a Proxy for YP Queries in the default community context - i.e. | public void | getYPServerContext(String AgentName, NextContextCallback callback) Find the YP server context for a given agent. | public void | nextYPServerContext(Object currentContext, NextContextCallback callback) Find the next context to search.
Parameters: currentContext - current YP context Parameters: callback - callback.invoke(Object) called with the next context. | YPFuture | submit(YPFuture ypr) Submit a YPFuture to be transmitted. |
getAutoYP | YPProxy getAutoYP(String ypAgent)(Code) | | List #getYP(String), except submits the request before returning the
YPFuture value. This is a convenient mechanism if you do not have access
to a blackboard for blackboard-based publish/subscribe of YPFuture requests.
Keep in mind that the YPFuture values returned are still futures, e.g. a call to get()
will block until the answer has been received.
Parameters: ypAgent - The name of the agent running the YPServer - used to constructa MessageAddress. |
getAutoYP | YPProxy getAutoYP(MessageAddress ypAgent)(Code) | | List #getYP(String), except submits the request before returning the
YPFuture value. This is a convenient mechanism if you do not have access
to a blackboard for blackboard-based publish/subscribe of YPFuture requests.
Keep in mind that the YPFuture values returned are still futures, e.g. a call to get()
will block until the answer has been recieved.
Parameters: ypAgent - MessageAddress of the agent running the YPServer |
getAutoYP | YPProxy getAutoYP(Community community)(Code) | | List #getYP(String), except submits the request before returning the
YPFuture value. This is a convenient mechanism if you do not have access
to a blackboard for blackboard-based publish/subscribe of YPFuture requests.
Keep in mind that the YPFuture values returned are still futures, e.g. a call to get()
will block until the answer has been recieved.
Parameters: community - Initial community for all YP interactions |
getYP | YPProxy getYP(String ypAgent)(Code) | | Get a Proxy for YP Queries from a specific YPServer. Typically, you would
invoke a method on the returned YPProxy, publish the resulting YPFuture to the
blackboard, and wait until the future has been publishChanged to get the value.
Parameters: ypAgent - The name of the agent running the YPServer - used to constructa MessageAddress. |
getYP | YPProxy getYP(MessageAddress ypAgent)(Code) | | Get a Proxy for YP Queries from a specific YPServer. Typically, you would
invoke a method on the returned YPProxy, publish the resulting YPFuture to the
blackboard, and wait until the future has been publishChanged to get the value.
Parameters: ypAgent - MessageAddress of the agent running the YPServer. |
getYP | YPProxy getYP(Community community)(Code) | | Get a Proxy for YP Queries in a specific community context. Typically, you
would invoke a method on the returned YPProxy, publish the resulting
YPFuture to the blackboard, and wait until the future has been
publishChanged to get the value.
Parameters: community - Initial community for all YP interactions |
getYP | YPProxy getYP(Community community, int searchMode)(Code) | | Get a Proxy for YP Queries in a specific community context. Typically, you
would invoke a method on the returned YPProxy, publish the resulting
YPFuture to the blackboard, and wait until the future has been
publishChanged to get the value.
Parameters: community - Initial community for all YP interactions Parameters: searchMode - Defines who/whether the YP resolver will use the community hierarchy to resolve queries which have no match in the initial commununity. |
getYP | YPProxy getYP()(Code) | | Get a Proxy for YP Queries in the default community context - i.e.
starting with the lowest level YPCommunity for which the agent is
a member. Typically, you
would invoke a method on the returned YPProxy, publish the resulting
YPFuture to the blackboard, and wait until the future has been
publishChanged to get the value.
|
getYP | YPProxy getYP(int searchMode)(Code) | | Get a Proxy for YP Queries in the default community context - i.e.
starting with the lowest level YPCommunity for which the agent is
a member. Typically, you
would invoke a method on the returned YPProxy, publish the resulting
YPFuture to the blackboard, and wait until the future has been
publishChanged to get the value.
Parameters: searchMode - Defines who/whether the YP resolver will use the community hierarchy to resolve queries which have no match in the local commununity. |
getYPServerContext | public void getYPServerContext(String AgentName, NextContextCallback callback)(Code) | | Find the YP server context for a given agent.
Parameters: AgentName - name of the agent Parameters: callback - callback.invoke(Object) called with the YP server context for the specified agent.Next context will be null if there is YP server contex for the specified agent |
nextYPServerContext | public void nextYPServerContext(Object currentContext, NextContextCallback callback)(Code) | | Find the next context to search.
Parameters: currentContext - current YP context Parameters: callback - callback.invoke(Object) called with the next context. Next context will be null if there is no next context. |
|
|