|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.system.plugin.DownloadResults
public class DownloadResults
Provides the results of a configuration download operation. This is updated along the way for callers who want to monitor the ongoing progress.
Constructor Summary | |
---|---|
DownloadResults()
|
Method Summary | |
---|---|
void |
addDependencyInstalled(org.apache.geronimo.kernel.repository.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(org.apache.geronimo.kernel.repository.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(org.apache.geronimo.kernel.repository.Artifact dep)
Notes that a configuration passed as an argument to the install operation was successfully installed. |
void |
addRemovedConfigID(org.apache.geronimo.kernel.repository.Artifact obsolete)
Notes a configuration that was removed because it was obsoleted by a newly-installed configuration. |
void |
addRestartedConfigID(org.apache.geronimo.kernel.repository.Artifact target)
Notes that a configuration was restarted as a result of the current operation. |
DownloadResults |
duplicate()
|
String |
getCurrentFile()
Gets the name of the file that is currently being operated on. |
int |
getCurrentFilePercent()
Gets the progress on the current file expressed as a percentage. |
String |
getCurrentMessage()
Gets a description of the work currently being done. |
org.apache.geronimo.kernel.repository.Artifact[] |
getDependenciesInstalled()
Gets the dependencies that we've successfully downloaded and installed into the local server environment. |
org.apache.geronimo.kernel.repository.Artifact[] |
getDependenciesPresent()
Gets the dependencies that we've needed but they're already present in the local server so no installation was necessary. |
Exception |
getFailure()
If the operation failed, the Exception that caused the failure. |
org.apache.geronimo.kernel.repository.Artifact[] |
getInstalledConfigIDs()
Gets the list of the originally requested Config IDs that were successfully installed. |
org.apache.geronimo.kernel.repository.Artifact[] |
getRemovedConfigIDs()
|
org.apache.geronimo.kernel.repository.Artifact[] |
getRestartedConfigIDs()
|
long |
getTotalDownloadBytes()
The total number of bytes in the archives downloaded from remote repositories. |
boolean |
isFailed()
|
boolean |
isFinished()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DownloadResults()
Method Detail |
---|
public DownloadResults duplicate()
public void addInstalledConfigID(org.apache.geronimo.kernel.repository.Artifact dep)
DownloadPoller
addInstalledConfigID
in interface DownloadPoller
public void addRemovedConfigID(org.apache.geronimo.kernel.repository.Artifact obsolete)
DownloadPoller
addRemovedConfigID
in interface DownloadPoller
public void addRestartedConfigID(org.apache.geronimo.kernel.repository.Artifact target)
DownloadPoller
addRestartedConfigID
in interface DownloadPoller
public void addDependencyPresent(org.apache.geronimo.kernel.repository.Artifact dep)
DownloadPoller
addDependencyPresent
in interface DownloadPoller
public void addDependencyInstalled(org.apache.geronimo.kernel.repository.Artifact dep)
DownloadPoller
addDependencyInstalled
in interface DownloadPoller
public void setCurrentFile(String currentFile)
DownloadPoller
setCurrentFile
in interface DownloadPoller
public void setCurrentMessage(String currentMessage)
DownloadPoller
setCurrentMessage
in interface DownloadPoller
public void setCurrentFilePercent(int currentFileProgress)
DownloadPoller
setCurrentFilePercent
in interface DownloadPoller
public void setFailure(Exception failure)
DownloadPoller
setFailure
in interface DownloadPoller
public void setFinished()
DownloadPoller
setFinished
in interface DownloadPoller
public void addDownloadBytes(long bytes)
DownloadPoller
addDownloadBytes
in interface DownloadPoller
public boolean isFinished()
public boolean isFailed()
public long getTotalDownloadBytes()
public Exception getFailure()
public org.apache.geronimo.kernel.repository.Artifact[] getInstalledConfigIDs()
public org.apache.geronimo.kernel.repository.Artifact[] getRemovedConfigIDs()
public org.apache.geronimo.kernel.repository.Artifact[] getRestartedConfigIDs()
public org.apache.geronimo.kernel.repository.Artifact[] getDependenciesPresent()
public org.apache.geronimo.kernel.repository.Artifact[] getDependenciesInstalled()
public String getCurrentFile()
public String getCurrentMessage()
public int getCurrentFilePercent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |