Interface IReplicationNodeAdmin
- All Known Implementing Classes:
ReplicationNodeAdmin
public interface IReplicationNodeAdmin
Provide administration capabilities of an
IReplicationNode- Since:
- 8.0
- Author:
- eitany
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearStaleReplicas(long expirationTime) booleanflushPendingReplication(long timeout, TimeUnit units) Attempts to flush all pending replication from the backlog The upper layer is in charge of not inserting new data to the replication node once flush is started.intgetSourceGroupConfigHolder(String groupName) Object[]voidvoidSets the administratedIReplicationNodeas active mode (i.e containing space is not a backup)voidvoidsetPassive(boolean closeProxy) Sets the administratedIReplicationNodeas passive mode (i.e containing space is backup)
-
Method Details
-
flushPendingReplication
Attempts to flush all pending replication from the backlog The upper layer is in charge of not inserting new data to the replication node once flush is started.- Returns:
- true if all was flushed successfully during the specified timeout, false otherwise.
-
monitorState
void monitorState(OperationWeightInfo info) throws RedoLogCapacityExceededException, ConsistencyLevelViolationException -
getStatistics
ReplicationStatistics getStatistics() -
flushRedoLogToStorage
int flushRedoLogToStorage()- Returns:
- number of flushed packets
- Since:
- 16.2
-
getStatus
Object[] getStatus() -
setNodeStateListener
-
setActive
void setActive()Sets the administratedIReplicationNodeas active mode (i.e containing space is not a backup) -
setPassive
void setPassive(boolean closeProxy) Sets the administratedIReplicationNodeas passive mode (i.e containing space is backup)- Parameters:
closeProxy- - whether to close the stub proxy when it has no more references.
-
dumpState
String dumpState() -
clearStaleReplicas
void clearStaleReplicas(long expirationTime) -
getRouterAdmin
IReplicationRouterAdmin getRouterAdmin()- Since:
- 8.0.5
-
getSourceGroupConfigHolder
- Since:
- 8.0.5
-