| org.cougaar.core.wp.WhitePagesMessage org.cougaar.core.wp.resolver.WPAnswer
WPAnswer | final public class WPAnswer extends WhitePagesMessage (Code) | | A message from a white pages server to a client, or between
servers.
|
Field Summary | |
final public static int | FORWARD | final public static int | LOOKUP | final public static int | MODIFY | final public static int | PING |
Method Summary | |
public int | getAction() | public Map | getMap() The content of this message. | public long | getReplyTime() The time on the server's clock when this response was sent. | public long | getSendTime() The time on the client's clock when the query was sent. | public String | toString() | public String | toString(long now) | public boolean | useServerTime() If true, then all timestamp offsets are relative to the server's
reply time, otherwise they should be based upon the client's
send time plus half the client's measured round-trip-time.
This flag is chosen by the server. |
FORWARD | final public static int FORWARD(Code) | | |
LOOKUP | final public static int LOOKUP(Code) | | |
MODIFY | final public static int MODIFY(Code) | | |
PING | final public static int PING(Code) | | |
getAction | public int getAction()(Code) | | the action of request |
getMap | public Map getMap()(Code) | | The content of this message.
|
getReplyTime | public long getReplyTime()(Code) | | The time on the server's clock when this response was sent.
|
getSendTime | public long getSendTime()(Code) | | The time on the client's clock when the query was sent.
|
useServerTime | public boolean useServerTime()(Code) | | If true, then all timestamp offsets are relative to the server's
reply time, otherwise they should be based upon the client's
send time plus half the client's measured round-trip-time.
This flag is chosen by the server. The advantage of this flag:
- true (server time):
This assumes that the client's clock is well
synchronized with the server's clock (e.g. NTP).
- false (client time):
This avoids clock synchronization issues but assumes
quick message delivery and approximately equal message
send/reply delivery times.
|
|
|