public abstract class AbstractInvocationStat extends Object implements InvocationStat
| 限定符和类型 | 字段和说明 |
|---|---|
protected InvocationStatDimension |
dimension
统计维度
|
protected AtomicLong |
exceptionCount
异常次数
|
protected AtomicLong |
invokeCount
调用次数
|
| 构造器和说明 |
|---|
AbstractInvocationStat(InvocationStatDimension dimension)
Instantiates a new Abstract dimension stat.
|
| 限定符和类型 | 方法和说明 |
|---|---|
InvocationStatDimension |
getDimension()
The Dimension of invocation statistics
|
long |
getExceptionCount()
Get count of exception event
|
double |
getExceptionRate()
Get rate of exception event. by exception count / invoke count
|
long |
getInvokeCount()
get count of invocation
|
AtomicInteger |
getUselessCycle()
Gets useless cycle.
|
long |
invoke()
tick one invocation
|
void |
setExceptionCount(long count)
Sets server exception.
|
protected void |
setInvokeCount(long count)
Sets invoke count.
|
InvocationStat |
snapshot()
Do snapshot of stat.
|
void |
update(InvocationStat snapshot)
Update the value of InvocationStat(eg. for next time window)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcatchExceptionprotected final InvocationStatDimension dimension
protected final AtomicLong invokeCount
protected final AtomicLong exceptionCount
public AbstractInvocationStat(InvocationStatDimension dimension)
dimension - the dimensionpublic InvocationStatDimension getDimension()
InvocationStatgetDimension 在接口中 InvocationStatpublic AtomicInteger getUselessCycle()
getUselessCycle 在接口中 InvocationStatpublic long invoke()
InvocationStatinvoke 在接口中 InvocationStatpublic long getInvokeCount()
InvocationStatgetInvokeCount 在接口中 InvocationStatpublic double getExceptionRate()
InvocationStatgetExceptionRate 在接口中 InvocationStatpublic long getExceptionCount()
InvocationStatgetExceptionCount 在接口中 InvocationStatprotected void setInvokeCount(long count)
count - the countpublic void setExceptionCount(long count)
count - the countpublic InvocationStat snapshot()
InvocationStatsnapshot 在接口中 InvocationStatpublic void update(InvocationStat snapshot)
InvocationStatupdate 在接口中 InvocationStatsnapshot - snapshot of one time windowCopyright © 2008–2018 The Ant Financial. All rights reserved.