|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wlai.ServiceStatistics
public class ServiceStatistics
Represents all statistics known about a single service name. This class is thread-safe.
Constructor Summary | |
---|---|
ServiceStatistics()
|
Method Summary | |
---|---|
void |
addServiceElapsedTime(long serviceElapsedTime)
Add an elapsed time (in milliseconds) for a single service invocation. |
int |
getAsyncCount()
Get the number of times this service was invoked asynchronously |
int |
getAsyncErrorCount()
Get the number of times an error occurred for the async invocation of this service |
long |
getAverageServiceElapsedTime()
Get the average elapsed time (in milliseconds) for invocations of this service. |
long |
getLastServiceInvocationTime()
Get the last time at which this service was invoked. |
int |
getParkedAsyncRequestCount()
Get the number of suspended async service requests for this service. |
int |
getSyncCount()
Get the number of times this service has occurred |
int |
getSyncErrorCount()
Get the number of times an error occurred for the sync invocation of this service |
void |
incrementAsyncCount()
Increment the async count for this service. |
void |
incrementAsyncErrorCount()
Increment the error count for this service. |
void |
incrementParkedAsyncRequestCount(int delta)
Increment the number of parked async requests for this service, by the amount given by the delta parameter (can be negative). |
void |
incrementSyncCount()
Increment the sync count for this service. |
void |
incrementSyncErrorCount()
Increment the error count for this service. |
void |
resetCounts()
Reset the async, sync, async error, sync error counts and service elapsed times for this service. |
void |
setLastServiceInvocationTime(long time)
Set the last time at which this service was invoked. |
void |
setParkedAsyncRequestCount(int count)
Set the number of suspended async requests for this service. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceStatistics()
Method Detail |
---|
public int getSyncCount()
public void incrementSyncCount()
public int getSyncErrorCount()
public void incrementSyncErrorCount()
public int getAsyncCount()
public void incrementAsyncCount()
public int getAsyncErrorCount()
public void incrementAsyncErrorCount()
public int getParkedAsyncRequestCount()
public void setParkedAsyncRequestCount(int count) throws IllegalArgumentException
IllegalArgumentException
public void incrementParkedAsyncRequestCount(int delta)
public void resetCounts()
public long getAverageServiceElapsedTime()
public void addServiceElapsedTime(long serviceElapsedTime)
serviceElapsedTime
- public long getLastServiceInvocationTime()
public void setLastServiceInvocationTime(long time)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |