|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProgressIndicator
A generic interface for reporting progress by a tool. Can be implemented to
support reporting progress from both a single source,
or for the aggregate of multiple sources.
| Nested Class Summary | |
|---|---|
static class |
ProgressIndicator.Decorator
|
static interface |
ProgressIndicator.Factory
A factory interface for creating ProgressIndicators. |
static class |
ProgressIndicator.MultiProgress
A ProgressIndicator that can report the total progress for
multiple sources. |
static class |
ProgressIndicator.SimpleProgress
A ProgressIndicator that can report the progress for a single
source. |
static class |
ProgressIndicator.Textual
A factory implementation that creates progress indicators that log progress textually. |
static class |
ProgressIndicator.UnknownEndProgress
Progress indicator where the end is unknown. |
| Field Summary | |
|---|---|
static ProgressIndicator |
NONE
A null object implementation of the ProgressIndicator interface. |
| Method Summary | |
|---|---|
void |
done()
Signal that the entire progress has completed. |
void |
done(long totalProgress)
Mark the process as done with the current source. |
void |
phase(String phase)
Set the name of the current phase of the progress. |
void |
update(boolean incremental,
long value)
Update the current progress count for the current source. |
| Field Detail |
|---|
static final ProgressIndicator NONE
| Method Detail |
|---|
void phase(String phase)
phase - the name of the current phase.
void update(boolean incremental,
long value)
incremental - whether this is an incremental update (
true) or an absolute assignment (
false) of the progress.value - the count to update the progress with.void done(long totalProgress)
totalProgress - the total progress reached by the source.void done()
done(long) method is used to indicate the completion of a
single phase, rather than the completion of the entire process.
To not invoke this method from a process that only processes a single phase is perfectly acceptable.
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||