| java.lang.Object org.cougaar.lib.aggagent.session.RemoteSession org.cougaar.lib.aggagent.session.ServletSession
ServletSession | public class ServletSession extends RemoteSession implements SubscriptionListener(Code) | | A Session is a handler for instances of the RemoteBlackboardSubscription
class. In the context of a Servlet, this class can be used to manage
remote access to the local Blackboard through the
RemoteBlackboardSubscription API.
|
ServletSession | public ServletSession(String k, String queryId, IncrementFormat f)(Code) | | Create a new Session with the specified session ID to search the
blackboard for Objects matching the predicate given.
|
endSession | public void endSession()(Code) | | End this session and let it halt all active and passive functions.
|
getData | protected SubscriptionAccess getData()(Code) | | Get the SubscriptionAccess implementation containing the data to be
encoded and sent to a client. In the case of a PSPSession, we have a
RemotePSPSubscription.
|
hasChanged | public boolean hasChanged()(Code) | | Check to see whether new information has been gathered since the last
report.
|
sendUpdate | public void sendUpdate(PrintWriter out)(Code) | | Send an update of recent changes to the resident RemoteSubscription
through the provided OutputStream. An IncrementFormat instance is used
to encode the data being sent.
|
subscriptionChanged | public void subscriptionChanged(Subscription sub)(Code) | | Implementation of the UISubscriber interface. When the COUGAAR agent has
changes to report, it will call this method so that the Session can
respond accordingly. The only action included by default is to call the
subscriptionChanged() method of the underlying RemotePSPSubscription.
Subclasses may wish to take additional steps, such as sending notices to
other agents, etc.
The Subscription argument is ignored, as the relevant Subscription is
presumed to be the one encapsulated within the RemotePSPSubscription.
|
|
|