| java.lang.Object java.lang.Thread com.martiansoftware.nailgun.NGSession
NGSession | class NGSession extends Thread (Code) | | Reads the NailGun stream from the client through the command,
then hands off processing to the appropriate class. The NGSession
obtains its sockets from an NGSessionPool, which created this
NGSession.
author: Marty Lamb |
Constructor Summary | |
| NGSession(NGSessionPool sessionPool, NGServer server) Creates a new NGSession running for the specified NGSessionPool and
NGServer. |
Method Summary | |
public void | run(Socket socket) Instructs this NGSession to process the specified socket, after which
this NGSession will return itself to the pool from which it came. | public void | run() The main NGSession loop. | void | shutdown() |
NGSession | NGSession(NGSessionPool sessionPool, NGServer server)(Code) | | Creates a new NGSession running for the specified NGSessionPool and
NGServer.
Parameters: sessionPool - The NGSessionPool we're working for Parameters: server - The NGServer we're working for |
run | public void run(Socket socket)(Code) | | Instructs this NGSession to process the specified socket, after which
this NGSession will return itself to the pool from which it came.
Parameters: socket - the socket (connected to a client) to process |
run | public void run()(Code) | | The main NGSession loop. This gets the next socket to process, runs
the nail for the socket, and loops until shut down.
|
shutdown | void shutdown()(Code) | | Shuts down this NGSession gracefully
|
|
|