org.globus.cog.karajan.workflow.service.handlers
Class RequestHandler

java.lang.Object
  extended by org.globus.cog.karajan.workflow.service.RequestReply
      extended by 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


Field Summary
 
Fields inherited from class org.globus.cog.karajan.workflow.service.RequestReply
NOID
 
Constructor Summary
RequestHandler()
           
 
Method Summary
 void dataReceived(byte[] data)
           
 void errorReceived(String msg, Exception t)
           
 boolean isReplySent()
           
protected  String ppInData(String prefix)
           
protected  String ppOutData(String prefix)
           
 void receiveCompleted()
           
abstract  void requestComplete()
           
 void send()
           
protected  void sendReply()
           
protected  void sendReply(byte[] data)
           
protected  void unregister()
           
 
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
 

Constructor Detail

RequestHandler

public RequestHandler()
Method Detail

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)