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(OperationWeightInfo info) |
void |
setActive()
Sets the administrated
IReplicationNode as active mode (i.e containing space is not a
backup) |
void |
setNodeStateListener(IReplicationNodeStateListener listener) |
void |
setPassive(boolean closeProxy)
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(OperationWeightInfo info) 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(boolean closeProxy)
IReplicationNodeAdmin
IReplicationNode
as passive mode (i.e containing space is
backup)setPassive
in interface IReplicationNodeAdmin
closeProxy
- - whether to close the stub proxy when it has no more references.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.