kaos.kpat.tunnel
Class TunnelServlet
java.lang.Object
HttpServlet
kaos.kpat.tunnel.TunnelServlet
- Direct Known Subclasses:
- CorbaServlet, GridServlet, LocalServlet, TCPServlet
public abstract class TunnelServlet
- extends HttpServlet
TunnelServlet
- Version:
- $Revision: 1.30 $
- Author:
- jlott
Nested Class Summary |
protected class |
TunnelServlet.MyObserver
javax.agent.service.transport.MessageListener interface implementation - end |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIRECTORY_SERVICE_LOCATOR
public static final java.lang.String DIRECTORY_SERVICE_LOCATOR
- See Also:
- Constant Field Values
_transportName
protected java.lang.String _transportName
_myObservers
protected java.util.List _myObservers
TunnelServlet
public TunnelServlet()
initialize
public boolean initialize(ServiceRoot sr)
throws java.lang.Exception
- Subclasses must call this method to initialize the servlet
- Throws:
java.lang.Exception
obtainEntityEnv
public abstract JasBean obtainEntityEnv()
- Subclasses must implement this method. It should return a JasBean which contains: key: value: DIRECTORY_SERVICE_LOCATOR Locator for the directory service along with any other
environment information that your MessageTransportService's newLocalLocator(env) and newMessageReceiver(env) methods require in order for this servlet to get a local locator
and bind a message receiver to it
registerObserver
protected void registerObserver(java.lang.String updateType,
java.io.Serializable condition,
KAoSObserver observer)
doPut
protected void doPut(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
java.io.IOException
- Throws:
ServletException
java.io.IOException
registerObserver
protected void registerObserver(java.util.Hashtable updateTypes,
java.io.ObjectOutputStream oos)
registerKAoSExtensionComponentObserver
protected void registerKAoSExtensionComponentObserver(java.lang.String repType,
java.lang.String ontType,
java.util.Hashtable updateTypes,
KAoSEntityDescription entityDesc,
java.io.ObjectOutputStream oos)
handleMethodCallRequest
protected void handleMethodCallRequest(MethodCallRequestMsg requestMsg,
java.io.ObjectOutputStream oos)
throws java.io.IOException
- Throws:
java.io.IOException
sendMsg
protected void sendMsg(Msg content)
throws NotLocatableException,
TransportFailure
- Throws:
NotLocatableException
TransportFailure
receiveMessage
public void receiveMessage(TransportMessage tMsg)
- javax.agent.service.transport.MessageListener interface implementation - begin