public interface ProgressManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JSON_PROGRESSTRACKER |
| 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.
|
static final java.lang.String JSON_PROGRESSTRACKER
java.lang.String getNewProgressIdentifier()
void startProgress(ProgressItem pi, java.lang.String id)
pi - ProgressItem to startid - The progress identifiervoid stopProgress(java.lang.String id)
id - The progress identifierint getProgress(java.lang.String id) throws java.lang.IllegalArgumentException
id - The progress identifier.java.lang.IllegalArgumentException - If no such progress item exists.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.