|
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.direct.KeelDirectServer
This class implements the server-side queue when Keel server is running directly in the same container as the Keel client. This is typically used in low-load/non-distributed environments, particularly from a webapp context. This class is not used directly. Instead, clients like Keel's Struts ModelAction class invoke this thread via the KeelStarter class.
| Nested Class Summary | |
(package private) class |
KeelDirectServer.MultiThreadedProcessor |
| Nested classes inherited from class org.keel.servers.KeelAbstractServer |
|
| Field Summary | |
private java.lang.Throwable |
heldError |
private Container |
keelContainer |
private boolean |
keepRunningKeelDirectServer |
private static java.lang.String |
PREFIX |
Channel |
requestChannel |
private int |
timeout |
| 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 | |
KeelDirectServer() |
|
| Method Summary | |
private void |
clearRequestChannel()Clears all data in the channels (up to 1000 messages). |
void |
dispose() |
KeelResponse |
execute(KeelRequest request) |
Channel |
getRequestChannel() |
void |
run() |
void |
setRequestChannel(Channel channel) |
| 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, destroy, 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 |
public Channel requestChannel
private java.lang.Throwable heldError
private boolean keepRunningKeelDirectServer
private int timeout
private Container keelContainer
private static final java.lang.String PREFIX
| Constructor Detail |
public KeelDirectServer()
| Method Detail |
public void run()
Runnable.run()private void clearRequestChannel()
public void dispose()
public Channel getRequestChannel()
public void setRequestChannel(Channel channel)
channel -
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 | ||||||||||