org.globus.cog.karajan.workflow.service.handlers
Class RequestHandler
java.lang.Object
org.globus.cog.karajan.workflow.service.RequestReply
org.globus.cog.karajan.workflow.service.handlers.RequestHandler
- Direct Known Subclasses:
- ChannelConfigurationHandler, EchoHandler, EventHandler, GroupHandler, ShutdownHandler, StartHandler, StatHandler, SubmitHandler, TestHandler, UnknownCommandHandler, UploadHandler, VargHandler, VersionHandler
public abstract class RequestHandler
- extends RequestReply
Fields inherited from class org.globus.cog.karajan.workflow.service.RequestReply |
NOID |
Methods inherited from class org.globus.cog.karajan.workflow.service.RequestReply |
addInData, addOutData, addOutData, addOutObject, channelClosed, deserialize, errorReceived, getChannel, getErrorFlag, getId, getInCmd, getInData, getInData, getInDataChuncks, getInObject, getOutCmd, getOutData, isInDataReceived, ppData, raiseErrorFlag, register, sendError, sendError, serialize, setId, setInCmd, setInData, setOutCmd |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestHandler
public RequestHandler()
requestComplete
public abstract void requestComplete()
throws ProtocolException
- Throws:
ProtocolException
sendReply
protected void sendReply(byte[] data)
throws ProtocolException
- Throws:
ProtocolException
sendReply
protected void sendReply()
throws ProtocolException
- Throws:
ProtocolException
isReplySent
public boolean isReplySent()
unregister
protected void unregister()
dataReceived
public void dataReceived(byte[] data)
throws ProtocolException
- Specified by:
dataReceived
in class RequestReply
- Throws:
ProtocolException
send
public void send()
throws ProtocolException
- Specified by:
send
in class RequestReply
- Throws:
ProtocolException
receiveCompleted
public final void receiveCompleted()
- Overrides:
receiveCompleted
in class RequestReply
errorReceived
public void errorReceived(String msg,
Exception t)
- Specified by:
errorReceived
in class RequestReply
ppOutData
protected String ppOutData(String prefix)
ppInData
protected String ppInData(String prefix)