public class ProgressUpdateListenerDelegate extends Object
Constructor and Description |
---|
ProgressUpdateListenerDelegate()
Creates a parameterized instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addProgressUpdateListener(ProgressUpdateListener l)
Adds a ProgressUpdateListener that will be notified of updates in
the install progress.
|
protected void |
notifyListeners(LocalizableMessage msg)
Notify listeners about a change in log detail.
|
void |
notifyListeners(ProgressStep current,
Integer ratio,
LocalizableMessage currentPhaseSummary,
LocalizableMessage newLogDetail)
This method notifies the ProgressUpdateListeners that there was an
update in the installation progress.
|
void |
removeProgressUpdateListener(ProgressUpdateListener l)
Removes a ProgressUpdateListener.
|
public ProgressUpdateListenerDelegate()
public void addProgressUpdateListener(ProgressUpdateListener l)
l
- the ProgressUpdateListener to be added.public void removeProgressUpdateListener(ProgressUpdateListener l)
l
- the ProgressUpdateListener to be removed.public void notifyListeners(ProgressStep current, Integer ratio, LocalizableMessage currentPhaseSummary, LocalizableMessage newLogDetail)
current
- progress stepratio
- the integer that specifies which percentage of
the whole installation has been completed.currentPhaseSummary
- the localized summary message for the
current installation progress in formatted form.newLogDetail
- the new log messages that we have for theprotected void notifyListeners(LocalizableMessage msg)
msg
- log detailCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.