|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DownloadPoller
An interface for callers who want to monitor the progress of an installation. These are all callbacks sent by the server.
PluginInstaller
Method Summary | |
---|---|
void |
addDependencyInstalled(Artifact dep)
Notes that the current install operation found a dependency, and that dependency was downloaded from a remote repository and installed into the local server environment. |
void |
addDependencyPresent(Artifact dep)
Notes that the current install operation found a dependency, and that dependency was satisfied by an artifact already available in the current server environment. |
void |
addDownloadBytes(long bytes)
Called at the end of a file download with the number of bytes downloaded in the current operation. |
void |
addInstalledConfigID(Artifact target)
Notes that a configuration passed as an argument to the install operation was successfully installed. |
void |
addRemovedConfigID(Artifact obsolete)
Notes a configuration that was removed because it was obsoleted by a newly-installed configuration. |
void |
addRestartedConfigID(Artifact target)
Notes that a configuration was restarted as a result of the current operation. |
void |
setCurrentFile(String currentFile)
Indicates which file the configuration installer is working on at the moment. |
void |
setCurrentFilePercent(int currentFileProgress)
Gives the percent complete for a file currently being downloaded. |
void |
setCurrentMessage(String currentMessage)
Describes the current operation status as a text message. |
void |
setFailure(Exception failure)
Indicates that a failure was encountered during the installation operation. |
void |
setFinished()
Always called when the operation is complete, regardless of whether there was a failure or not. |
Method Detail |
---|
void addRemovedConfigID(Artifact obsolete)
void addInstalledConfigID(Artifact target)
void addRestartedConfigID(Artifact target)
void addDependencyPresent(Artifact dep)
void addDependencyInstalled(Artifact dep)
void setCurrentFile(String currentFile)
void setCurrentMessage(String currentMessage)
void setCurrentFilePercent(int currentFileProgress)
void addDownloadBytes(long bytes)
void setFailure(Exception failure)
void setFinished()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |