パッケージ twitter4j.management
クラス APIStatistics
java.lang.Object
twitter4j.management.APIStatistics
- すべての実装されたインタフェース:
APIStatisticsMBean,InvocationStatistics
Container for all InvocationStatisticsCalculators in a given API (like Twitter)
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明longreturn average timelongreturn call countlongreturn error countIterable<? extends InvocationStatistics>getMethodLevelSummary(String methodName) getName()APIStatisticsMBean implementationlongreturns total timevoidmethodCalled(String method, long time, boolean success) voidreset()reset statistics
-
コンストラクタの詳細
-
APIStatistics
public APIStatistics(int historySize) - パラメータ:
historySize- the number of calls to track (for invocation time averaging)
-
-
メソッドの詳細
-
methodCalled
- パラメータ:
method- the method invokedtime- the method execution timesuccess- success
-
getInvocationStatistics
- 定義:
getInvocationStatisticsインタフェース内APIStatisticsMBean- 戻り値:
- InvocationStatistics
-
reset
public void reset()インタフェースからコピーされた説明:InvocationStatisticsreset statistics- 定義:
resetインタフェース内InvocationStatistics
-
getName
APIStatisticsMBean implementation- 定義:
getNameインタフェース内InvocationStatistics- 戻り値:
- name
-
getCallCount
public long getCallCount()インタフェースからコピーされた説明:InvocationStatisticsreturn call count- 定義:
getCallCountインタフェース内InvocationStatistics- 戻り値:
- call count
-
getErrorCount
public long getErrorCount()インタフェースからコピーされた説明:InvocationStatisticsreturn error count- 定義:
getErrorCountインタフェース内InvocationStatistics- 戻り値:
- error count
-
getTotalTime
public long getTotalTime()インタフェースからコピーされた説明:InvocationStatisticsreturns total time- 定義:
getTotalTimeインタフェース内InvocationStatistics- 戻り値:
- total time
-
getAverageTime
public long getAverageTime()インタフェースからコピーされた説明:InvocationStatisticsreturn average time- 定義:
getAverageTimeインタフェース内InvocationStatistics- 戻り値:
- average time
-
getMethodLevelSummariesAsString
- 定義:
getMethodLevelSummariesAsStringインタフェース内APIStatisticsMBean- 戻り値:
- method level summaries
-
getMethodLevelSummary
- 定義:
getMethodLevelSummaryインタフェース内APIStatisticsMBean- パラメータ:
methodName- method name- 戻り値:
- method level summary
-