|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 ProtocolHandler
config
- The singleton config objectpublic void setKey(SelectionKey key)
setKey
in interface ProtocolHandler
key
- The nio selection keypublic boolean doProcessRequest(ByteBuffer buffer, int count)
doProcessRequest
in interface ProtocolHandler
buffer
- The buffer to look atcount
- The number of new bytes in the buffer
public boolean doProcessResponse() throws IOException
doProcessResponse
in interface ProtocolHandler
IOException
- Cannot write response to channelpublic boolean doContinueResponse() throws IOException
doContinueResponse
in interface ProtocolHandler
IOException
- 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 |