public class ReplicationNodeAdmin extends Object implements IReplicationNodeAdmin
ReplicationNode
Constructor and Description |
---|
ReplicationNodeAdmin(ReplicationNode replicationNode) |
Modifier and Type | Method and Description |
---|---|
void |
clearStaleReplicas(long expirationTime) |
String |
dumpState() |
boolean |
flushPendingReplication(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.
|
IReplicationRouterAdmin |
getRouterAdmin() |
DynamicSourceGroupConfigHolder |
getSourceGroupConfigHolder(String groupName) |
ReplicationStatistics |
getStatistics() |
Object[] |
getStatus() |
void |
monitorState() |
void |
setActive()
Sets the administrated
IReplicationNode as active mode (i.e containing space is not a
backup) |
void |
setNodeStateListener(IReplicationNodeStateListener listener) |
void |
setPassive()
Sets the administrated
IReplicationNode as passive mode (i.e containing space is
backup) |
public ReplicationNodeAdmin(ReplicationNode replicationNode)
public boolean flushPendingReplication(long timeout, TimeUnit units)
IReplicationNodeAdmin
flushPendingReplication
in interface IReplicationNodeAdmin
public ReplicationStatistics getStatistics()
getStatistics
in interface IReplicationNodeAdmin
public Object[] getStatus()
getStatus
in interface IReplicationNodeAdmin
public void monitorState() throws RedoLogCapacityExceededException, ConsistencyLevelViolationException
monitorState
in interface IReplicationNodeAdmin
RedoLogCapacityExceededException
ConsistencyLevelViolationException
public void setActive()
IReplicationNodeAdmin
IReplicationNode
as active mode (i.e containing space is not a
backup)setActive
in interface IReplicationNodeAdmin
public void setPassive()
IReplicationNodeAdmin
IReplicationNode
as passive mode (i.e containing space is
backup)setPassive
in interface IReplicationNodeAdmin
public void setNodeStateListener(IReplicationNodeStateListener listener)
setNodeStateListener
in interface IReplicationNodeAdmin
public String dumpState()
dumpState
in interface IReplicationNodeAdmin
public void clearStaleReplicas(long expirationTime)
clearStaleReplicas
in interface IReplicationNodeAdmin
public IReplicationRouterAdmin getRouterAdmin()
getRouterAdmin
in interface IReplicationNodeAdmin
public DynamicSourceGroupConfigHolder getSourceGroupConfigHolder(String groupName)
getSourceGroupConfigHolder
in interface IReplicationNodeAdmin
Copyright © GigaSpaces.