|
Buju 0.4 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biz.bbeans.buju.BServer.BConnection
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
void |
close()
Close this connection gracefully. |
String |
getAdminCommandToken()
Get the token for recognizing an admin command. |
BInterpreter |
getInterpreter()
Get this connection's current interpreter. |
Throwable |
getLastThrowable()
Get the last throwable encountered by this connection when it was evaluating source code. |
int |
getPID()
Gets the connection thread process ID assigned when the thread was created. |
Map |
getProperties()
Get the properties Map. |
long |
getTimeout()
Get this connection's timeout setting. |
void |
run()
Run the thread servicing the client. |
void |
setAdminCommandToken(String token)
Set the token for recognizing an admin command. |
void |
setInterpreter(BInterpreter interp)
Set the current interpreter for this connection. |
void |
setTimeout(long timeout)
Set this connection's timeout in milleseconds. |
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 |
Method Detail |
public void run()
public void setTimeout(long timeout)
timeout
- Time in milleseconds to wait before
interrupting the blocked thread. A value of zero
will never interrupt the thread, potentially leaving
it blocked forever. Any negative value will interrupt
the blocked thread immediately.public long getTimeout()
public void setAdminCommandToken(String token)
token
- Admin command token. A received line beginning
with this string is processed by the admin interpreter.public String getAdminCommandToken()
public void setInterpreter(BInterpreter interp)
interp
- Interpreter to set.public BInterpreter getInterpreter()
public Map getProperties()
public Throwable getLastThrowable()
public void close()
public int getPID()
|
Buju 0.4 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |