|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.faban.harness.logging.LogHandler
public class LogHandler
Protocol handler for log requests.
| Constructor Summary | |
|---|---|
LogHandler()
|
|
| Method Summary | |
|---|---|
boolean |
doContinueResponse()
Continues writing the response to the channel. |
boolean |
doProcessRequest(ByteBuffer buffer,
int count)
Analyzes the buffer and return read active status. |
boolean |
doProcessResponse()
Creates and writes the response to the channel. |
boolean |
requestPending()
Tests the handler whether it needs to further process this request. |
void |
setConfig(LogConfig config)
Sets the config object. |
void |
setKey(SelectionKey key)
Sets the selection key for subsequent invocations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogHandler()
| Method Detail |
|---|
public void setConfig(LogConfig config)
setConfig in interface ProtocolHandlerconfig - The singleton config objectpublic void setKey(SelectionKey key)
setKey in interface ProtocolHandlerkey - The nio selection key
public boolean doProcessRequest(ByteBuffer buffer,
int count)
doProcessRequest in interface ProtocolHandlerbuffer - The buffer to look atcount - The number of new bytes in the buffer
public boolean doProcessResponse()
throws IOException
doProcessResponse in interface ProtocolHandlerIOException - Cannot write response to channel
public boolean doContinueResponse()
throws IOException
doContinueResponse in interface ProtocolHandlerIOException - Cannot write response to channelpublic boolean requestPending()
requestPending in interface ProtocolHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||