public class SpaceReplicaState extends Object implements ISpaceSynchronizeReplicaState
Constructor and Description |
---|
SpaceReplicaState(IReplicationMonitoredConnection originConnection,
boolean isSynchronize,
long progressTimeout,
IReplicationTargetGroup targetGroup) |
Modifier and Type | Method and Description |
---|---|
void |
abort(long timeout,
TimeUnit units) |
void |
addReplicateConsumer(SpaceCopyReplicaRunnable consumer) |
ISpaceCopyResult |
getCopyResult() |
SpaceReplicaStage |
getStage() |
ISpaceSynchronizeResult |
getSynchronizeResult() |
boolean |
isDone() |
boolean |
isFailed() |
void |
signalCopyStageFailed(Exception error) |
void |
signalEntireCopyStageDoneSuccessfully() |
void |
signalSingleCopyStageDone() |
void |
updateSynchronizationDone() |
ISpaceCopyResult |
waitForCopyResult() |
ISpaceCopyResult |
waitForCopyResult(long time,
TimeUnit unit) |
ISpaceSynchronizeResult |
waitForSynchronizeCompletion() |
ISpaceSynchronizeResult |
waitForSynchronizeCompletion(long time,
TimeUnit unit) |
public SpaceReplicaState(IReplicationMonitoredConnection originConnection, boolean isSynchronize, long progressTimeout, IReplicationTargetGroup targetGroup)
public ISpaceCopyResult waitForCopyResult() throws InterruptedException
waitForCopyResult
in interface ISpaceCopyReplicaState
InterruptedException
public ISpaceCopyResult waitForCopyResult(long time, TimeUnit unit) throws InterruptedException, TimeoutException
waitForCopyResult
in interface ISpaceCopyReplicaState
InterruptedException
TimeoutException
public boolean isDone()
isDone
in interface ISpaceCopyReplicaState
public boolean isFailed()
public void updateSynchronizationDone()
public ISpaceSynchronizeResult getSynchronizeResult()
getSynchronizeResult
in interface ISpaceSynchronizeReplicaState
public ISpaceSynchronizeResult waitForSynchronizeCompletion() throws InterruptedException
waitForSynchronizeCompletion
in interface ISpaceSynchronizeReplicaState
InterruptedException
public ISpaceSynchronizeResult waitForSynchronizeCompletion(long time, TimeUnit unit) throws InterruptedException, TimeoutException
waitForSynchronizeCompletion
in interface ISpaceSynchronizeReplicaState
InterruptedException
TimeoutException
public SpaceReplicaStage getStage()
getStage
in interface ISpaceCopyReplicaState
public ISpaceCopyResult getCopyResult()
getCopyResult
in interface ISpaceCopyReplicaState
public void addReplicateConsumer(SpaceCopyReplicaRunnable consumer)
public void abort(long timeout, TimeUnit units) throws InterruptedException, TimeoutException
abort
in interface ISpaceCopyReplicaState
InterruptedException
TimeoutException
public void signalEntireCopyStageDoneSuccessfully()
public void signalSingleCopyStageDone()
public void signalCopyStageFailed(Exception error)
Copyright © GigaSpaces.