net.i2p.router.web
public class PluginUpdateHandler.PluginUpdateRunner extends UpdateHandler.UpdateRunner implements Runnable, EepGet.StatusListener
_get, _isRunning, _pct, done
Constructor and Description |
---|
PluginUpdateHandler.PluginUpdateRunner(String url) |
Modifier and Type | Method and Description |
---|---|
void |
bytesTransferred(long alreadyTransferred,
int currentWrite,
long bytesTransferred,
long bytesRemaining,
String url)
alreadyTransferred - total of all attempts, not including currentWrite
If nonzero on the first call, a partial file of that length was found,
_and_ the server supports resume.
|
void |
transferComplete(long alreadyTransferred,
long bytesTransferred,
long bytesRemaining,
String url,
String outputFile,
boolean notModified) |
void |
transferFailed(String url,
long bytesTransferred,
long bytesRemaining,
int currentAttempt) |
protected void |
update()
Loop through the entire list of update URLs.
|
attemptFailed, attempting, headerReceived, isDone, isRunning, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attemptFailed, attempting, headerReceived
public PluginUpdateHandler.PluginUpdateRunner(String url)
protected void update()
UpdateHandler.UpdateRunner
update
in class UpdateHandler.UpdateRunner
public void bytesTransferred(long alreadyTransferred, int currentWrite, long bytesTransferred, long bytesRemaining, String url)
EepGet.StatusListener
bytesTransferred
in interface EepGet.StatusListener
bytesTransferred
in class UpdateHandler.UpdateRunner
public void transferComplete(long alreadyTransferred, long bytesTransferred, long bytesRemaining, String url, String outputFile, boolean notModified)
transferComplete
in interface EepGet.StatusListener
transferComplete
in class UpdateHandler.UpdateRunner
public void transferFailed(String url, long bytesTransferred, long bytesRemaining, int currentAttempt)
transferFailed
in interface EepGet.StatusListener
transferFailed
in class UpdateHandler.UpdateRunner