|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
org.keel.servers.KeelAbstractServer
org.keel.servers.socket.KeelSocketServer
A KeelServer instance calls an instance of this class every time a request is received, up to a certain maximum number of active threads. This class handles the request in a seperate thread, and terminates once the response has been sent back to the client.
| Nested Class Summary | |
(package private) class |
KeelSocketServer.MultiThreadedProcessor |
| Nested classes inherited from class org.keel.servers.KeelAbstractServer |
|
| Field Summary | |
private Configuration |
myConfig |
private java.net.ServerSocket |
serverSocket |
| Fields inherited from class org.keel.servers.KeelAbstractServer |
logger, myContainer |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
KeelSocketServer() |
|
| Method Summary | |
protected void |
bootstrap()Need to configure, initialize, etc...but can't rely on the lifecycle interfaces used by typical components because the container is not yet available. |
void |
destroy() |
KeelResponse |
execute(KeelRequest request) |
void |
run() |
void |
setLogger(Logger newLog) |
protected void |
socketServiceLoop() |
| Methods inherited from class org.keel.servers.KeelAbstractServer |
getContainer, getContext, getLogger, initialize, isInitialized, receiveEvent, saveContext, setArgs, setInitialized, shutDown |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private Configuration myConfig
private java.net.ServerSocket serverSocket
| Constructor Detail |
public KeelSocketServer()
| Method Detail |
public void setLogger(Logger newLog)
protected void bootstrap()
throws ModelException
ModelExceptionpublic void run()
protected void socketServiceLoop()
public void destroy()
public KeelResponse execute(KeelRequest request)
throws ModelException
ModelException
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||