| org.cougaar.core.wp.resolver.SelectService
SelectService | public interface SelectService extends Service(Code) | | This service is the "server selection service" advertised by
the
SelectManager that the
ClientTransport uses
to select a white pages server.
The primary job of this service is to locate servers and select
the best one. The
SelectService.update feedback can be used to
aid selection.
|
Inner Class :interface Client | |
contains | boolean contains(MessageAddress addr)(Code) | | true if the address is a listed white pages server |
select | MessageAddress select(boolean lookup, String name)(Code) | | Select a server for the specified name.
For example, this could be a lookup for the record of "AgentX".
A server from the pool is selected and returned, or null is
returned if no applicable server is listed.
|
update | void update(MessageAddress addr, long duration, boolean timeout)(Code) | | Update the server list with measured performance statistics.
If the timeout flag is false then the duration is the measured
round-trip-time for the message response, otherwise the
duration is the timeout duration.
|
|
|