|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PageBoxLib.Relayer
Deployment relay.
Changes:
alexis.grandemange@pagebox.net
Copyright (c) 2002-2004 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
Nested Class Summary | |
(package private) class |
Relayer.Entry
Describes a Relay request |
(package private) class |
Relayer.RelayerThread
Thread class deploying archives for the repository. |
Field Summary | |
(package private) long |
lastModified
Last time the Relayer object has been used |
private Log |
log
Log instance |
(package private) static java.util.HashMap |
relayers
Relayer map. Key: Repository URL Value: Relayer object |
(package private) static int |
RELAYINACTIVITYTIMEOUT
Timeout to remove inactive threads |
(package private) Relayer.RelayerThread |
rt
Thread handle |
Constructor Summary | |
private |
Relayer(java.lang.String downloadURL,
java.lang.String user,
java.lang.String password,
Log log,
java.lang.String deployerClass,
java.lang.String querierClass)
Constructor. |
Method Summary | |
(package private) static void |
cleanup()
Remove inactive threads. |
(package private) void |
deploy(java.lang.String arch,
java.lang.String owner,
byte[] archData,
java.lang.String date,
java.lang.String oldDate,
java.lang.String docURL,
boolean isUpdate,
boolean runInstall,
DeployIF.UrlUser[] relayed)
Deploys an archive on a set of PageBoxes. |
private void |
end()
Requires the thread termination. |
(package private) static Relayer |
getRelayer(java.lang.String workDir,
java.lang.String downloadURL,
java.lang.String user,
java.lang.String password,
Log log,
java.lang.String deployerClass,
java.lang.String querierClass)
Returns the repository relayer and creates it if it doesn't exist yet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Log log
long lastModified
Relayer.RelayerThread rt
static java.util.HashMap relayers
static final int RELAYINACTIVITYTIMEOUT
Constructor Detail |
private Relayer(java.lang.String downloadURL, java.lang.String user, java.lang.String password, Log log, java.lang.String deployerClass, java.lang.String querierClass)
downloadURL
- Repository URL.user
- subscriber user namepassword
- subscriber passwordlog
- Log objectdeployerClass
- Deploy invoker class namequerierClass
- RepoQuery invoker class nameMethod Detail |
static Relayer getRelayer(java.lang.String workDir, java.lang.String downloadURL, java.lang.String user, java.lang.String password, Log log, java.lang.String deployerClass, java.lang.String querierClass)
downloadURL
- Repository URL.user
- subscriber user namepassword
- subscriber passwordlog
- Log objectdeployerClass
- Deploy invoker class namequerierClass
- RepoQuery invoker class name
private void end()
static void cleanup()
void deploy(java.lang.String arch, java.lang.String owner, byte[] archData, java.lang.String date, java.lang.String oldDate, java.lang.String docURL, boolean isUpdate, boolean runInstall, DeployIF.UrlUser[] relayed)
arch
- archive name.owner
- user who published the archive.archData
- archive data.date
- publication date and time.oldDate
- expected previous publication date and time.docURL
- documentation URL.isUpdate
- if true delta updaterunInstall
- if true run the Application server installer (Web application)relayed
- PageBox instances to deploy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |