| java.lang.Object org.cougaar.lib.aggagent.session.RemoteSession
All known Subclasses: org.cougaar.lib.aggagent.session.ServletSession,
RemoteSession | abstract public class RemoteSession implements Serializable(Code) | | A RemoteSession represents a contract for a COUGAAR agent to provide data
to another based on a Subscription to the local blackboard. The primary
purpose of this class is to provide standard algorithms for handling a
SubscriptionAccess and any errors in the UnaryPredicate or IncrementFormat
scripts.
|
Inner Class :protected class ErrorTrapPredicate implements UnaryPredicate | |
Method Summary | |
protected UpdateDelta | createUpdateDelta() Encode the data contained in the local SubscriptionAccess and send the
results back to the client. | abstract protected SubscriptionAccess | getData() Get the SubscriptionAccess implementation containing the data to be
encoded and sent to a client. | public String | getKey() For purposes of tabulation, this key identifies the session existing
between this Object and the remote client. | public String | getQueryId() Report the query ID associated with this session. | protected void | setAgentId(String a) Specify the name of the local COUGAAR agent. |
RemoteSession | protected RemoteSession(String k, String q, IncrementFormat f)(Code) | | Create a new RemoteSession instance. It carries an ID for itself and
the associated client-side query. It also has an IncrementFormat for
encoding data sets to return to the client and a String identifier
indicating which agent initiated this session (and to whom responses
should be sent).
|
createUpdateDelta | protected UpdateDelta createUpdateDelta()(Code) | | Encode the data contained in the local SubscriptionAccess and send the
results back to the client. If an error is detected during the gathering
process, then an error report is returned in lieu of a data set.
|
getData | abstract protected SubscriptionAccess getData()(Code) | | Get the SubscriptionAccess implementation containing the data to be
encoded and sent to a client. Different concrete subclasses will
probably manage different types of these.
|
getKey | public String getKey()(Code) | | For purposes of tabulation, this key identifies the session existing
between this Object and the remote client. Requests concerning the
session (such as ending it, checking its status, etc.) should use this
key.
|
getQueryId | public String getQueryId()(Code) | | Report the query ID associated with this session. This method is useful
for looking up sessions by client-supplied ID.
|
setAgentId | protected void setAgentId(String a)(Code) | | Specify the name of the local COUGAAR agent.
|
|
|