public class DefaultProgressManager extends java.lang.Object implements ProgressManager
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultProgressManager.JSONTracker
Provides access to a progress indicator, assuming you know the ID.
|
JSON_PROGRESSTRACKER| Constructor and Description |
|---|
DefaultProgressManager()
Creates a new ProgressManager.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getNewProgressIdentifier()
You can use this to get an unique process identifier.
|
int |
getProgress(java.lang.String id)
Get the progress in percents.
|
void |
startProgress(ProgressItem pi,
java.lang.String id)
Call this method to get your ProgressItem into the ProgressManager queue.
|
void |
stopProgress(java.lang.String id)
Call this method to remove your ProgressItem from the queue (after which getProgress() will no longer find it.
|
public DefaultProgressManager()
public java.lang.String getNewProgressIdentifier()
getNewProgressIdentifier in interface ProgressManagerpublic void startProgress(ProgressItem pi, java.lang.String id)
startProgress in interface ProgressManagerpi - ProgressItem to startid - The progress identifierpublic void stopProgress(java.lang.String id)
stopProgress in interface ProgressManagerid - The progress identifierpublic int getProgress(java.lang.String id) throws java.lang.IllegalArgumentException
getProgress in interface ProgressManagerid - The progress identifier.java.lang.IllegalArgumentException - If no such progress item exists.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.