copy from opends/src/quicksetup/org/opends/quicksetup/event/ProgressUpdateEvent.java
copy to opends/src/quicksetup/org/opends/quicksetup/event/UninstallProgressUpdateEvent.java
| File was copied from opends/src/quicksetup/org/opends/quicksetup/event/ProgressUpdateEvent.java |
| | |
| | | |
| | | package org.opends.quicksetup.event; |
| | | |
| | | import org.opends.quicksetup.installer.InstallProgressStep; |
| | | import org.opends.quicksetup.uninstaller.UninstallProgressStep; |
| | | |
| | | /** |
| | | * The event that is generated when there is a change during the installation |
| | | * The event that is generated when there is a change during the uninstallation |
| | | * process (we get a new log message when starting the server, or we finished |
| | | * configuring the server for instance). |
| | | * |
| | | * In the current implementation this events are generated by the Installer |
| | | * objects and are notified to the objects implementing ProgressUpdateListener |
| | | * (QuickSetup object). |
| | | * In the current implementation this events are generated by the Uninstaller |
| | | * object and are notified to the objects implementing |
| | | * UninstallProgressUpdateListener (QuickSetup object). |
| | | * |
| | | */ |
| | | public class ProgressUpdateEvent |
| | | public class UninstallProgressUpdateEvent |
| | | { |
| | | private InstallProgressStep step; |
| | | private UninstallProgressStep step; |
| | | |
| | | private Integer progressRatio; |
| | | |
| | |
| | | private String newLogs; |
| | | |
| | | /** |
| | | * Constructor of the ProgressUpdateEvent. |
| | | * @param step the InstallProgressStep object describing in which step |
| | | * Constructor of the UninstallProgressUpdateEvent. |
| | | * @param step the UninstallProgressStep object describing in which step |
| | | * of the installation we are (configuring server, starting server, etc.) |
| | | * @param progressRatio the integer that specifies which percentage of |
| | | * the whole installation has been completed. |
| | |
| | | * current installation progress. |
| | | * @param newLogs the new log messages that we have for the installation. |
| | | */ |
| | | public ProgressUpdateEvent(InstallProgressStep step, |
| | | public UninstallProgressUpdateEvent(UninstallProgressStep step, |
| | | Integer progressRatio, String currentPhaseSummary, String newLogs) |
| | | { |
| | | this.step = step; |
| | |
| | | * Gets the current progress step. |
| | | * @return the current progress step. |
| | | */ |
| | | public InstallProgressStep getProgressStep() |
| | | public UninstallProgressStep getProgressStep() |
| | | { |
| | | return step; |
| | | } |