public class ProgressTrackerImpl extends Object implements ProgressTracker
| Constructor and Description |
|---|
ProgressTrackerImpl(GlobalSession myGlobalSession) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(DistributedOperation operation)
Called when an operation should be abnormally aborted
and removed from the tracker.
|
int |
inProgressCount()
Returns a count of the current number of in-progress tracked operations.
|
Progress |
start(DistributedOperation operation)
Called to start tracking the progress of an operation.
|
void |
trackReplication(DistributedOperation operation)
Called when an operation has been replicated and is waiting
for the operation to be locally applied.
|
void |
trackResult(DistributedOperation operation,
Result result)
Called when an operation has been applied and a result is
available.
|
void |
triggerReplicationEvent()
Called when a significant event related to replication
has occurred (i.e.
|
public ProgressTrackerImpl(GlobalSession myGlobalSession)
public Progress start(DistributedOperation operation)
ProgressTrackerstart in interface ProgressTrackeroperation - The operation to track.public void trackReplication(DistributedOperation operation)
ProgressTrackertrackReplication in interface ProgressTrackeroperation - The operation that has been replicated.public void trackResult(DistributedOperation operation, Result result)
ProgressTrackertrackResult in interface ProgressTrackeroperation - The operation that has been applied.result - The result of the operation.public void abort(DistributedOperation operation)
ProgressTrackerabort in interface ProgressTrackeroperation - The operation to be aborted.public void triggerReplicationEvent()
ProgressTrackertriggerReplicationEvent in interface ProgressTrackerpublic int inProgressCount()
ProgressTrackerinProgressCount in interface ProgressTrackerCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.