Class Communication
- java.lang.Object
-
- risesoft.data.transfer.core.statistics.Communication
-
-
Constructor Summary
Constructors Constructor Description Communication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(String key, String value)Communicationclone()Map<String,Number>getCounter()DoublegetDoubleCounter(String key)longgetEndTime()LonggetLongCounter(String key)Map<String,List<String>>getMessage()List<String>getMessage(String key)longgetStartTime()StategetState()ThrowablegetThrowable()StringgetThrowableMessage()longgetTimestamp()voidincreaseCounter(String key, long deltaValue)增加某个key的数量booleanisFinished()CommunicationmergeFrom(Communication otherComm)StatemergeStateFrom(Communication otherComm)合并state,优先级: (Failed | Killed) > Running > Success 这里不会出现 Killing 状态,killing 状态只在 Job 自身状态上才有.voidreset()booleanruning()启动任务voidsetDoubleCounter(String key, double value)voidsetLongCounter(String key, long value)voidsetStartTime(long startTime)voidsetState(State state)voidsetState(State state, boolean isForce)voidsetThrowable(Throwable throwable)voidsetThrowable(Throwable throwable, boolean isForce)voidsetTimestamp(long timestamp)
-
-
-
Method Detail
-
reset
public void reset()
-
getStartTime
public long getStartTime()
-
setStartTime
public void setStartTime(long startTime)
-
getEndTime
public long getEndTime()
-
getState
public State getState()
-
setState
public void setState(State state, boolean isForce)
-
setState
public void setState(State state)
-
getThrowable
public Throwable getThrowable()
-
getThrowableMessage
public String getThrowableMessage()
-
setThrowable
public void setThrowable(Throwable throwable)
-
setThrowable
public void setThrowable(Throwable throwable, boolean isForce)
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public void setTimestamp(long timestamp)
-
setLongCounter
public void setLongCounter(String key, long value)
-
setDoubleCounter
public void setDoubleCounter(String key, double value)
-
increaseCounter
public void increaseCounter(String key, long deltaValue)
增加某个key的数量- Parameters:
key-deltaValue-
-
runing
public boolean runing()
启动任务- Returns:
-
clone
public Communication clone()
-
mergeFrom
public Communication mergeFrom(Communication otherComm)
-
mergeStateFrom
public State mergeStateFrom(Communication otherComm)
合并state,优先级: (Failed | Killed) > Running > Success 这里不会出现 Killing 状态,killing 状态只在 Job 自身状态上才有.
-
isFinished
public boolean isFinished()
-
-