org.neo4j.helpers
Class ProgressIndicator.MultiProgress
java.lang.Object
org.neo4j.helpers.ProgressIndicator.SimpleProgress
org.neo4j.helpers.ProgressIndicator.MultiProgress
- All Implemented Interfaces:
- ProgressIndicator
- Enclosing interface:
- ProgressIndicator
public abstract static class ProgressIndicator.MultiProgress
- extends ProgressIndicator.SimpleProgress
A ProgressIndicator
that can report the total progress for
multiple sources.
Needs to be initialized with the total count that should be reached by
all sources together.
When the entire process (all sources) is completed, done()
needs
to be invoked.
- Author:
- Tobias Lindaaker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProgressIndicator.MultiProgress
public ProgressIndicator.MultiProgress(long total)
- Create a
ProgressIndicator
for multiple sources.
- Parameters:
total
- the total count the entire process (all sources) will
reach.
textual
public static ProgressIndicator.MultiProgress textual(PrintStream out,
long total)
- Returns a simple
ProgressIndicator
that reports progress by
printing to the provided stream.
- Parameters:
out
- the stream to print progress indication to.total
- the total count the entire process (all sources) will
reach.
- Returns:
- a simple
ProgressIndicator
that reports progress by
printing to the provided stream.
done
public void done(long totalSegmentProgress)
- Description copied from interface:
ProgressIndicator
- Mark the process as done with the current source.
- Specified by:
done
in interface ProgressIndicator
- Overrides:
done
in class ProgressIndicator.SimpleProgress
- Parameters:
totalSegmentProgress
- the total progress reached by the source.
done
public void done()
- Signal that the entire progress (all sources) is done.
- Specified by:
done
in interface ProgressIndicator
- Overrides:
done
in class ProgressIndicator.SimpleProgress
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.