|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.Daemon
com.tangosol.net.LoadBalancer.SocketHandler
com.tangosol.net.LoadBalancer.ResponseHandler
public class LoadBalancer.ResponseHandler
A ResponseHandler is a daemon thread that processes an outgoing response from a destination server.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.tangosol.util.Daemon |
|---|
Daemon.DaemonWorker |
| Field Summary | |
|---|---|
protected LoadBalancer.RequestHandler |
m_daemonRequest
The RequestHandler that this ResponseHandler belongs to. |
protected Socket |
m_socketClient
The Socket to write the response to. |
protected Socket |
m_socketServer
The Socket to read the response from. |
| Fields inherited from class com.tangosol.net.LoadBalancer.SocketHandler |
|---|
m_abBuf |
| Constructor Summary | |
|---|---|
LoadBalancer.ResponseHandler(LoadBalancer.RequestHandler daemonRequest)
Construct a ResponseHandler that belongs to the specified RequestHandler. |
|
| Method Summary | |
|---|---|
void |
relayResponse(Socket socketServer,
Socket socketClient)
This method is used to assign a task to the ResponseHandler thread from the RequestHandler thread. |
void |
run()
Processing loop for the ResponseHandler daemon. |
| Methods inherited from class com.tangosol.net.LoadBalancer.SocketHandler |
|---|
copy, ensureBuffer, process |
| Methods inherited from class com.tangosol.util.Daemon |
|---|
changeState, configureWorker, getConfiguredName, getConfiguredPriority, getDescription, getState, getThread, getThreadContextClassLoader, getWorker, instantiateWorker, isOnWorkerThread, isRunning, isStopping, setConfiguredName, setConfiguredPriority, setThreadContextClassLoader, start, stop, toStateString, toString |
| Field Detail |
|---|
protected LoadBalancer.RequestHandler m_daemonRequest
protected Socket m_socketServer
protected Socket m_socketClient
| Constructor Detail |
|---|
public LoadBalancer.ResponseHandler(LoadBalancer.RequestHandler daemonRequest)
daemonRequest - the RequestHandler that this ResponseHandler
belongs to| Method Detail |
|---|
public void run()
run in interface Runnablerun in class LoadBalancer.SocketHandler
public void relayResponse(Socket socketServer,
Socket socketClient)
socketServer - the socket to copy fromsocketClient - the socket to copy to
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||