|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.event.ReplEvent
com.continuent.tungsten.replicator.event.ReplDBMSEvent
public class ReplDBMSEvent
Storage class for replication events implementing full event management metadata such as timestamp, source ID, epoch number, and event fragment protocol.
| Constructor Summary | |
|---|---|
ReplDBMSEvent(long seqno,
DBMSEvent event)
Short constructor. |
|
ReplDBMSEvent(long seqno,
short fragno,
boolean lastFrag,
java.lang.String sourceId,
long epochNumber,
java.sql.Timestamp extractedTstamp,
DBMSEvent event)
Construct a new replication event. |
|
| Method Summary | |
|---|---|
long |
getAppliedLatency()
|
java.util.ArrayList<DBMSData> |
getData()
Gets the event data for this replicated event. |
DBMSEvent |
getDBMSEvent()
Returns the raw DBMS event containing SQL data. |
long |
getEpochNumber()
Returns the epoch number, a number that identifies a continuous sequence of events from the time a master goes online until it goes offline. |
java.lang.String |
getEventId()
Returns the native event ID corresponding to this log sequence number. |
java.sql.Timestamp |
getExtractedTstamp()
Returns the extractedTstamp value. |
short |
getFragno()
Returns the event fragment number, a monotonically increasing whole number starting at 0. |
boolean |
getLastFrag()
Returns true if this fragment is the last one. |
long |
getSeqno()
Returns the sequence number of this event. |
java.lang.String |
getShardId()
Returns the shard ID for this transaction. |
java.lang.String |
getSourceId()
Returns the ID of the data source from which this event was originally extracted. |
void |
setShardId(java.lang.String shardId)
Sets the shard ID. |
| Methods inherited from class com.continuent.tungsten.replicator.event.ReplEvent |
|---|
getEstimatedSize, setEstimatedSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplDBMSEvent(long seqno,
short fragno,
boolean lastFrag,
java.lang.String sourceId,
long epochNumber,
java.sql.Timestamp extractedTstamp,
DBMSEvent event)
seqno - Log sequence numberfragno - Fragment numberlastFrag - True if this is the last fragmentsourceId - Originating source of dataepochNumber - Epoch number on dataextractedTstamp - Time of extractionevent - Raw event data, which must always be supplied.
public ReplDBMSEvent(long seqno,
DBMSEvent event)
| Method Detail |
|---|
public long getSeqno()
getSeqno in interface ReplDBMSHeadergetSeqno in class ReplEventReplDBMSHeader.getSeqno()public short getFragno()
getFragno in interface ReplDBMSHeaderReplDBMSHeader.getFragno()public boolean getLastFrag()
getLastFrag in interface ReplDBMSHeaderReplDBMSHeader.getLastFrag()public java.util.ArrayList<DBMSData> getData()
public java.lang.String getSourceId()
getSourceId in interface ReplDBMSHeaderReplDBMSHeader.getSourceId()public long getEpochNumber()
getEpochNumber in interface ReplDBMSHeaderReplDBMSHeader.getEpochNumber()public java.sql.Timestamp getExtractedTstamp()
getExtractedTstamp in interface ReplDBMSHeaderpublic java.lang.String getEventId()
getEventId in interface ReplDBMSHeaderReplDBMSHeader.getEventId()public java.lang.String getShardId()
getShardId in interface ReplDBMSHeaderReplDBMSHeader.getShardId()public void setShardId(java.lang.String shardId)
public DBMSEvent getDBMSEvent()
public long getAppliedLatency()
getAppliedLatency in interface ReplDBMSHeader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||