パッケージ twitter4j.management
クラス APIStatistics
java.lang.Object
twitter4j.management.APIStatistics
- すべての実装されたインタフェース:
APIStatisticsMBean
,InvocationStatistics
Container for all InvocationStatisticsCalculators in a given API (like Twitter)
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明long
return average timelong
return call countlong
return error countIterable<? extends InvocationStatistics>
getMethodLevelSummary
(String methodName) getName()
APIStatisticsMBean implementationlong
returns total timevoid
methodCalled
(String method, long time, boolean success) void
reset()
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()インタフェースからコピーされた説明:InvocationStatistics
reset statistics- 定義:
reset
インタフェース内InvocationStatistics
-
getName
APIStatisticsMBean implementation- 定義:
getName
インタフェース内InvocationStatistics
- 戻り値:
- name
-
getCallCount
public long getCallCount()インタフェースからコピーされた説明:InvocationStatistics
return call count- 定義:
getCallCount
インタフェース内InvocationStatistics
- 戻り値:
- call count
-
getErrorCount
public long getErrorCount()インタフェースからコピーされた説明:InvocationStatistics
return error count- 定義:
getErrorCount
インタフェース内InvocationStatistics
- 戻り値:
- error count
-
getTotalTime
public long getTotalTime()インタフェースからコピーされた説明:InvocationStatistics
returns total time- 定義:
getTotalTime
インタフェース内InvocationStatistics
- 戻り値:
- total time
-
getAverageTime
public long getAverageTime()インタフェースからコピーされた説明:InvocationStatistics
return average time- 定義:
getAverageTime
インタフェース内InvocationStatistics
- 戻り値:
- average time
-
getMethodLevelSummariesAsString
- 定義:
getMethodLevelSummariesAsString
インタフェース内APIStatisticsMBean
- 戻り値:
- method level summaries
-
getMethodLevelSummary
- 定義:
getMethodLevelSummary
インタフェース内APIStatisticsMBean
- パラメータ:
methodName
- method name- 戻り値:
- method level summary
-