public class ReplicationStateInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LAST_TIMESTAMP |
static java.lang.String |
LAST_TXN_ID |
Constructor and Description |
---|
ReplicationStateInfo() |
Modifier and Type | Method and Description |
---|---|
static ReplicationStateInfo |
fromStreamTable(net.cnri.util.StreamTable replicationConfig,
java.lang.String ownName) |
long |
getLastTimestamp(java.lang.String name) |
long |
getLastTxnId(java.lang.String name) |
java.lang.String |
getOwnName() |
boolean |
isQueueNameInOwnSite(java.lang.String queueName) |
static boolean |
isQueueNameInSiteNamed(java.lang.String queueName,
java.lang.String ownName) |
java.util.Set<java.lang.String> |
keySet() |
void |
setLastTimestamp(java.lang.String name,
long lastTimestamp) |
void |
setLastTxnId(java.lang.String name,
long lastTxnId) |
void |
setOwnName(java.lang.String name) |
static net.cnri.util.StreamTable |
toStreamTable(ReplicationStateInfo replicationStateInfo) |
public static final java.lang.String LAST_TXN_ID
public static final java.lang.String LAST_TIMESTAMP
public java.util.Set<java.lang.String> keySet()
public long getLastTxnId(java.lang.String name)
public long getLastTimestamp(java.lang.String name)
public void setLastTxnId(java.lang.String name, long lastTxnId)
public void setLastTimestamp(java.lang.String name, long lastTimestamp)
public java.lang.String getOwnName()
public static ReplicationStateInfo fromStreamTable(net.cnri.util.StreamTable replicationConfig, java.lang.String ownName)
public static net.cnri.util.StreamTable toStreamTable(ReplicationStateInfo replicationStateInfo)
public void setOwnName(java.lang.String name)
public boolean isQueueNameInOwnSite(java.lang.String queueName)
public static boolean isQueueNameInSiteNamed(java.lang.String queueName, java.lang.String ownName)