|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.pipeline.TaskProgress
public class TaskProgress
Tracks statistics for an individual task, which is identified by a task ID.
| Constructor Summary | |
|---|---|
TaskProgress(TaskProgress other)
Create a clone of a current instance. |
|
| Method Summary | |
|---|---|
void |
begin()
Start the task progress timer. |
void |
beginApplyInterval()
Start an apply interval. |
void |
beginExtractInterval()
Start an extract interval. |
void |
beginFilterInterval()
Start a filter interval. |
TaskProgress |
clone()
Returns a shallow copy of this instance. |
void |
endApplyInterval()
Add time for an apply operation interval. |
void |
endExtractInterval()
Add time for an extract operation interval. |
void |
endFilterInterval()
Add time for a filter operation interval. |
long |
getApplyLatencyMillis()
Return apply latency in milliseconds. |
double |
getApplyLatencySeconds()
Return apply latency in seconds. |
double |
getAverageBlockSize()
|
long |
getBlockCount()
|
long |
getCurrentBlockSize()
|
long |
getEndMillis()
Returns the current end time for measuring intervals. |
long |
getEventCount()
|
long |
getEventCountAtLastCommit()
|
long |
getLastCommitMillis()
|
long |
getLastCommittedBlockMillis()
|
long |
getLastCommittedBlockSize()
|
double |
getLastCommittedBlockTime()
Return time in seconds of last committed block. |
ReplDBMSHeader |
getLastCommittedEvent()
|
ReplDBMSHeader |
getLastProcessedEvent()
|
java.lang.String |
getStageName()
|
long |
getStartMillis()
Returns the start time of the task. |
TaskState |
getState()
Returns the current task state. |
int |
getTaskId()
|
long |
getTotalApplyMillis()
Returns cumulative extract time in milliseconds. |
double |
getTotalApplySeconds()
Return apply time in seconds. |
long |
getTotalExtractMillis()
Returns cumulative extract time in milliseconds. |
double |
getTotalExtractSeconds()
Return extract time in seconds. |
long |
getTotalFilterMillis()
Returns cumulative filter time in milliseconds |
double |
getTotalFilterSeconds()
Return filter time in seconds. |
long |
getTotalOtherMillis()
Returns remaining wall-clock time outside of extract/filter/apply. |
double |
getTotalOtherSeconds()
Return other time in seconds. |
void |
incrementEventCount()
|
boolean |
isCancelled()
|
void |
setApplyLatencyMillis(long applyLatencyMillis)
|
void |
setCancelled(boolean cancelled)
|
void |
setEventCount(long eventCount)
|
void |
setEventCountAtLastCommit(long eventCountAtLastCommit)
|
void |
setLastCommittedBlockSize(long lastCommittedBlockSize)
|
void |
setLastCommittedEvent(ReplDBMSHeader lastCommittedEvent)
|
void |
setLastProcessedEvent(ReplDBMSHeader lastEvent)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskProgress(TaskProgress other)
| Method Detail |
|---|
public void begin()
public java.lang.String getStageName()
public int getTaskId()
public ReplDBMSHeader getLastProcessedEvent()
public void setLastProcessedEvent(ReplDBMSHeader lastEvent)
public ReplDBMSHeader getLastCommittedEvent()
public void setLastCommittedEvent(ReplDBMSHeader lastCommittedEvent)
public long getLastCommittedBlockMillis()
public long getLastCommitMillis()
public boolean isCancelled()
public void setCancelled(boolean cancelled)
public long getEventCount()
public void setEventCount(long eventCount)
public long getEventCountAtLastCommit()
public void setEventCountAtLastCommit(long eventCountAtLastCommit)
public void incrementEventCount()
public long getBlockCount()
public double getAverageBlockSize()
public long getCurrentBlockSize()
public long getLastCommittedBlockSize()
public void setLastCommittedBlockSize(long lastCommittedBlockSize)
public double getLastCommittedBlockTime()
public long getApplyLatencyMillis()
public double getApplyLatencySeconds()
public void setApplyLatencyMillis(long applyLatencyMillis)
public long getStartMillis()
public long getEndMillis()
public long getTotalExtractMillis()
public double getTotalExtractSeconds()
public void beginExtractInterval()
public void endExtractInterval()
public long getTotalFilterMillis()
public double getTotalFilterSeconds()
public void beginFilterInterval()
public void endFilterInterval()
public long getTotalApplyMillis()
public double getTotalApplySeconds()
public void beginApplyInterval()
public void endApplyInterval()
public long getTotalOtherMillis()
public double getTotalOtherSeconds()
public TaskState getState()
public TaskProgress clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||