|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.logging.RequestProxy
public class RequestProxy
The request proxy represents the request for both the selector end and the service thread end. The selector will set the proxy to ready state and if the request is not already processed by a service thread, it will also schedule the request to be processed by the thread pool. Otherwise it will use the request proxy to notify the processing thread that the channel is ready to perform I/O.
The service thread side will process the request and wait for notification if more I/O is needed and the channel is not ready.
Constructor Summary | |
---|---|
RequestProxy(LogConfig config,
SelectionKey key)
Constructs a request proxy. |
Method Summary | |
---|---|
boolean |
channelReady()
Tells the proxy that the channel is ready for IO. |
void |
run()
Run is called from the thread pool to process the request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestProxy(LogConfig config, SelectionKey key)
config
- The log configurationkey
- The nio selection key identifying the socket channelMethod Detail |
---|
public boolean channelReady()
public void run()
run
in interface Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |