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.intflushRedoLogToStorage(boolean copyToBackupDir) getSourceGroupConfigHolder(String groupName) Object[]booleanisMemberConnected(String groupName, String memberName) voidvoidreattachMemberChannel(String groupName, String memberName) voidSets 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(boolean copyToBackupDir) - Parameters:
copyToBackupDir- also copy the redo-log files to the backup directory and notify, seeReplicationNode.flushRedoLogToStorage(boolean)- Returns:
- number of flushed packets, -1 if the swap redo-log is not sqlite
- 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
-
isMemberConnected
-
reattachMemberChannel
-