|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread PageBoxLib.Relayer.RelayerThread
Thread class deploying archives for the repository.
Field Summary | |
(package private) Deployer |
deployer
Deploy Web service invoker |
(package private) java.lang.String |
downloadURL
Repository URL |
private java.lang.String |
password
Subscriber password |
(package private) Querier |
querier
Deploy Web service invoker |
(package private) java.util.LinkedList |
queue
Queue used to pass Relay requests. |
(package private) boolean |
started
True when Relay thread started |
private java.lang.String |
user
Subscriber user name |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
(package private) |
Relayer.RelayerThread(java.lang.String downloadURL,
java.lang.String user,
java.lang.String password,
java.lang.String deployerClass,
java.lang.String querierClass)
Constructor. |
Method Summary | |
private DeployIF.Status |
add(Relayer.Entry e,
java.lang.String url,
java.lang.String user,
java.lang.String pbUser,
java.lang.String pbPasswd,
DeployIF.UrlUser[] relayed)
Deploys an archive. |
private void |
relay(Relayer.Entry e,
DeployIF.UrlUser[] relayed,
java.util.ArrayList usa)
Recursive deployment - send half the deployments to the target PageBox. |
private boolean |
repNotify(java.lang.String arch,
RepoQueryIF.UrlStatus[] usal)
Notify the success of relayed deployments to the repository. |
void |
run()
Main method of the RelayerThread 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 |
boolean started
java.util.LinkedList queue
java.lang.String downloadURL
private java.lang.String user
private java.lang.String password
Deployer deployer
Querier querier
Constructor Detail |
Relayer.RelayerThread(java.lang.String downloadURL, java.lang.String user, java.lang.String password, java.lang.String deployerClass, java.lang.String querierClass)
downloadURL
- Repository URLuser
- subscriber user namepassword
- subscriber passwordMethod Detail |
public void run()
private void relay(Relayer.Entry e, DeployIF.UrlUser[] relayed, java.util.ArrayList usa)
e
- Entry object describing the Relay queryrelayed
- list of subscribers to deployprivate boolean repNotify(java.lang.String arch, RepoQueryIF.UrlStatus[] usal)
arch
- archive nameusal
- array of subscriber UrlStatus
private DeployIF.Status add(Relayer.Entry e, java.lang.String url, java.lang.String user, java.lang.String pbUser, java.lang.String pbPasswd, DeployIF.UrlUser[] relayed)
e
- Entry objecturl
- Web service URIuser
- user who subscribed the PageBoxpbUser
- PageBox userpbPasswd
- PageBox passwordrelayed
- PageBox instances to deploy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |