|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.inca.protocol.MessageHandler
public abstract class MessageHandler
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
logger that can be used by all MessageHandlers. |
| Constructor Summary | |
|---|---|
MessageHandler()
|
|
| Method Summary | |
|---|---|
static void |
errorReply(ProtocolWriter writer,
java.lang.String msg)
A convenience method that logs and writes an error message. |
abstract void |
execute(ProtocolReader reader,
ProtocolWriter writer)
Execute should run the task using the reader and writer for in/output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public MessageHandler()
| Method Detail |
|---|
public abstract void execute(ProtocolReader reader,
ProtocolWriter writer)
throws java.lang.Exception
java.lang.Exception
public static void errorReply(ProtocolWriter writer,
java.lang.String msg)
writer - the writer to use to send the error messagemsg - the error message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||