public class ModuleMetricsVisitor
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static long |
DEFAULT_INVOKE_MIN_TIMESPAN |
构造器和说明 |
---|
ModuleMetricsVisitor(java.lang.String moduleName,
java.lang.String methodName) |
限定符和类型 | 方法和说明 |
---|---|
javax.management.openmbean.CompositeData |
buildErrorCompositeData(java.lang.Throwable error) |
void |
clear() |
boolean |
equals(java.lang.Object obj) |
long |
getErrorLastTimeLongVal() |
int |
getHashKey() |
com.fr.third.alibaba.druid.util.Histogram |
getHistogram() |
long |
getInvokeCount() |
long |
getInvokeFailCount() |
long |
getInvokeFilterCount() |
long[] |
getInvokeHistogram() |
long |
getInvokeMaxTimespan() |
long |
getInvokeMinTimespan() |
long |
getInvokeSuccCount() |
long |
getInvokeTimespan() |
java.lang.String |
getLastErrorTime() |
java.lang.String |
getLastStackTrace() |
java.lang.String |
getLastStackTraceDetail() |
java.lang.String |
getMethodName() |
java.lang.String |
getModuleName() |
java.lang.String |
getStackTrace(java.lang.Throwable ex) |
javax.management.openmbean.CompositeType |
getThrowableCompositeType() |
int |
hashCode() |
long |
incrementInvokeCount() |
long |
incrementInvokeFailCount() |
long |
incrementInvokeFilterCount() |
long |
incrementInvokeSuccCount() |
void |
reset() |
void |
setErrorLastTimeLongVal(long lastErrorTime) |
void |
setHashKey(int hashKey) |
void |
setHistogram(com.fr.third.alibaba.druid.util.Histogram histogram) |
void |
setInvokeCount(long invokeCount) |
void |
setInvokeFailCount(long invokeFailCount) |
void |
setInvokeFilterCount(long invokeFilterCount) |
void |
setInvokeHistogram(long[] invokeHistogram) |
void |
setInvokeMaxTimespan(long invokeMaxTimespan) |
void |
setInvokeMinTimespan(long invokeMinTimespan) |
void |
setInvokeSuccCount(long invokeSuccCount) |
void |
setInvokeTimespan(long invokeTimespan) |
void |
setLastStackTrace(java.lang.Exception lastStackTrace) |
void |
setLastStackTraceDetail(java.lang.String lastStackTraceDetail) |
void |
setMethodName(java.lang.String methodName) |
void |
setModuleName(java.lang.String moduleName) |
java.lang.String |
toString() |
public static final long DEFAULT_INVOKE_MIN_TIMESPAN
@ConstructorProperties(value={"moduleName","methodName"}) public ModuleMetricsVisitor(java.lang.String moduleName, java.lang.String methodName)
public void clear()
public void reset()
public void setErrorLastTimeLongVal(long lastErrorTime)
public long getErrorLastTimeLongVal()
public java.lang.String getLastErrorTime()
public java.lang.String getLastStackTrace()
public java.lang.String getStackTrace(java.lang.Throwable ex)
public void setLastStackTrace(java.lang.Exception lastStackTrace)
public void setLastStackTraceDetail(java.lang.String lastStackTraceDetail)
public java.lang.String getLastStackTraceDetail()
public javax.management.openmbean.CompositeType getThrowableCompositeType() throws javax.management.JMException
javax.management.JMException
public javax.management.openmbean.CompositeData buildErrorCompositeData(java.lang.Throwable error) throws javax.management.JMException
javax.management.JMException
public java.lang.String getModuleName()
public void setModuleName(java.lang.String moduleName)
public java.lang.String getMethodName()
public void setMethodName(java.lang.String methodName)
public long getInvokeCount()
public void setInvokeCount(long invokeCount)
public long incrementInvokeCount()
public long getInvokeSuccCount()
public void setInvokeSuccCount(long invokeSuccCount)
public long incrementInvokeSuccCount()
public long getInvokeFailCount()
public void setInvokeFailCount(long invokeFailCount)
public long incrementInvokeFailCount()
public long getInvokeFilterCount()
public void setInvokeFilterCount(long invokeFilterCount)
public long incrementInvokeFilterCount()
public void setHistogram(com.fr.third.alibaba.druid.util.Histogram histogram)
public com.fr.third.alibaba.druid.util.Histogram getHistogram()
public long[] getInvokeHistogram()
public void setInvokeHistogram(long[] invokeHistogram)
public long getInvokeTimespan()
public void setInvokeTimespan(long invokeTimespan)
public long getInvokeMinTimespan()
public void setInvokeMinTimespan(long invokeMinTimespan)
public long getInvokeMaxTimespan()
public void setInvokeMaxTimespan(long invokeMaxTimespan)
public int getHashKey()
public void setHashKey(int hashKey)
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object