|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.authz.common.ServiceMetrics
@ThreadSafe public class ServiceMetrics
A set of metrics kept about a running service.
Constructor Summary | |
---|---|
ServiceMetrics(java.lang.String id,
java.lang.String version)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getServiceId()
Gets an identifier for the service whose metrics are being tracked. |
long |
getServiceStartupTime()
Gets the time that the service was started. |
long |
getTotalServiceRequestErrors()
Gets the total number of requests that error'ed out. |
long |
getTotalServiceRequests()
Gets the total number of completed requests, successful or otherwise, serviced. |
void |
incrementTotalServiceRequestErrors()
Adds one to the total number of requests that have error'ed out. |
void |
incrementTotalServiceRequests()
Adds one to the total number of requests. |
void |
printServiceMetrics(java.io.PrintWriter writer)
Prints metric information to the output writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceMetrics(java.lang.String id, java.lang.String version)
id
- ID of the service whose metrics are being trackedversion
- Version of the service whose metrics are being trackedMethod Detail |
---|
public java.lang.String getServiceId()
public long getServiceStartupTime()
public long getTotalServiceRequests()
public void incrementTotalServiceRequests()
public long getTotalServiceRequestErrors()
public void incrementTotalServiceRequestErrors()
public void printServiceMetrics(java.io.PrintWriter writer)
writer
- writer to which metrics are printed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |