public class MainJarUpdater extends NodeUpdater
core, fetchedVersion, manager, node, tempBlobFile| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(byte[] expectedHash,
java.io.File filename)
Called by cleanup with the dependencies we can serve for the current version.
|
boolean |
brokenDependencies() |
void |
cleanupDependencies() |
void |
deploy(freenet.node.updater.MainJarDependenciesChecker.MainJarDependencies deps) |
freenet.node.updater.MainJarDependenciesChecker.JarFetcher |
fetch(FreenetURI uri,
java.io.File downloadTo,
long expectedLength,
byte[] expectedHash,
freenet.node.updater.MainJarDependenciesChecker.JarFetcherCallback cb,
int build,
boolean essential,
boolean executable) |
java.lang.String |
jarName() |
protected void |
maybeParseManifest(FetchResult result,
int build)
Called with locks held
|
void |
multiFileReplaceReadyToDeploy(freenet.node.updater.MainJarDependenciesChecker.AtomicDeployer atomicDeployer)
A multi-file update (e.g.
|
protected void |
onStartFetching() |
void |
onStartFetchingUOM() |
protected void |
parseDependencies(java.util.Properties props,
int build)
Override if you want to deal with the file dependencies.properties
|
protected void |
processSuccess(int fetched,
FetchResult result,
java.io.File blob)
We have fetched the jar! Do something after onSuccess().
|
void |
reannounce()
We have just downloaded a dependency needed for the current build.
|
void |
renderProperties(HTMLNode alertNode) |
void |
start() |
canUpdateNow, fetchingVersion, getBlobFile, getBlobSize, getFetchedVersion, getPollingPriorityNormal, getPollingPriorityProgress, getRequestClient, getUpdateKey, isFetching, maybeProcessOldBlob, maybeUpdate, onChangeURI, onFailure, onFoundEdition, onResume, onSuccess, parseDependencies, parseManifest, parseManifestLine, persistent, preKill, realTimeFlag, setMinMaxpublic java.lang.String jarName()
jarName in class NodeUpdaterpublic void start()
protected void maybeParseManifest(FetchResult result, int build)
NodeUpdatermaybeParseManifest in class NodeUpdaterprotected void processSuccess(int fetched,
FetchResult result,
java.io.File blob)
NodeUpdaterprocessSuccess in class NodeUpdaterprotected void onStartFetching()
onStartFetching in class NodeUpdaterprotected void parseDependencies(java.util.Properties props,
int build)
NodeUpdaterparseDependencies in class NodeUpdaterpublic void deploy(freenet.node.updater.MainJarDependenciesChecker.MainJarDependencies deps)
public freenet.node.updater.MainJarDependenciesChecker.JarFetcher fetch(FreenetURI uri, java.io.File downloadTo, long expectedLength, byte[] expectedHash, freenet.node.updater.MainJarDependenciesChecker.JarFetcherCallback cb, int build, boolean essential, boolean executable) throws FetchException
FetchExceptionpublic void onStartFetchingUOM()
public void renderProperties(HTMLNode alertNode)
public boolean brokenDependencies()
public void cleanupDependencies()
public void addDependency(byte[] expectedHash,
java.io.File filename)
expectedHash - The hash of the file's contents, which is also
listed in the dependencies file.filename - The local file to serve it from.public void reannounce()
public void multiFileReplaceReadyToDeploy(freenet.node.updater.MainJarDependenciesChecker.AtomicDeployer atomicDeployer)