|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread PageBoxLib.TokenImpl.TokenThread
Thread class sending frames to the next station on the ring.
Field Summary | |
(package private) java.util.LinkedList |
queue
Queue used to pass frames. |
(package private) boolean |
started
True when thread started |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
(package private) |
TokenImpl.TokenThread()
|
Method Summary | |
(package private) void |
frameForward(java.lang.String url,
TokenFrame frame)
Forward the frame to the next running PageBox or to the Repository. |
(package private) void |
generateToken(java.lang.String url)
Generate a new token. |
void |
run()
Main method of the TokenThread thread. |
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 |
java.util.LinkedList queue
boolean started
Constructor Detail |
TokenImpl.TokenThread()
Method Detail |
public void run()
void generateToken(java.lang.String url)
Generate a new token.
No token received may be due toPb: how to avoid that all stations generate a new token?
Solution: wait for a url-dependent time before generating a new token.
url
- RL of the DeployIF web service of the subscribed PageBoxvoid frameForward(java.lang.String url, TokenFrame frame)
url
- PageBox urlframe
- frame to forward
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |