org.cougaar.core.node
Class QuiescenceStateServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.cougaar.core.servlet.ComponentServlet
              extended by org.cougaar.core.node.QuiescenceStateServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.cougaar.core.component.Component, org.cougaar.util.GenericStateModel

public class QuiescenceStateServlet
extends ComponentServlet

This component is a Servlet that displays the agents registered with the node's AgentQuiescenceStateService, and allow an agent to be marked as "dead" (for use when the agent has been restarted elsewhere and the original instance should be ignored).

Address it at /agentQuiescenceState

Load it into every Node at BINDER or lower priority, using the insertion point Node.AgentManager.Agent.PluginManager.Servlet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.cougaar.core.servlet.ComponentServlet
agentId, agentIdService, bindingSite, encAgentName, serviceBroker, servletService
 
Fields inherited from interface org.cougaar.util.GenericStateModel
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED
 
Constructor Summary
QuiescenceStateServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sres)
           
 void doPut(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sres)
           
protected  java.lang.String getPath()
          Get the path for the Servlet's registration.
 void load()
           
 void setAgentQuiescenceStateService(AgentQuiescenceStateService aqs)
           
 void setLoggingService(LoggingService log)
           
 void setNodeIdentificationService(NodeIdentificationService nis)
           
 void unload()
           
 
Methods inherited from class org.cougaar.core.servlet.ComponentServlet
getAgentIdentifier, getEncodedAgentName, getModelState, getServiceBroker, halt, initialize, resume, setAgentIdentificationService, setBindingSite, setParameter, setServiceBroker, start, stop, suspend
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuiescenceStateServlet

public QuiescenceStateServlet()
Method Detail

getPath

protected java.lang.String getPath()
Description copied from class: ComponentServlet
Get the path for the Servlet's registration.

Typically supplied by the component parameter, but subclasses can hard-code the path by overriding this method.

Overrides:
getPath in class ComponentServlet

load

public void load()
Specified by:
load in interface org.cougaar.util.GenericStateModel
Overrides:
load in class ComponentServlet

setLoggingService

public void setLoggingService(LoggingService log)

setAgentQuiescenceStateService

public void setAgentQuiescenceStateService(AgentQuiescenceStateService aqs)

setNodeIdentificationService

public void setNodeIdentificationService(NodeIdentificationService nis)

unload

public void unload()
Specified by:
unload in interface org.cougaar.util.GenericStateModel
Overrides:
unload in class ComponentServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest sreq,
                  javax.servlet.http.HttpServletResponse sres)
           throws java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException

doPut

public void doPut(javax.servlet.http.HttpServletRequest sreq,
                  javax.servlet.http.HttpServletResponse sres)
           throws java.io.IOException
Overrides:
doPut in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException