Class WebRequestsServiceMonitors
java.lang.Object
org.openspaces.pu.service.PlainServiceMonitors
org.openspaces.pu.container.jee.stats.WebRequestsServiceMonitors
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,ServiceMonitors
Statistics monitor information for JEE servlet requests.
- Author:
- kimchy
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.openspaces.pu.service.PlainServiceMonitors
details, id, monitors -
Constructor Summary
ConstructorsConstructorDescriptionWebRequestsServiceMonitors(String id, long requests, long requestsActive, long requestsDurationTotal) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current number of requests that are active.floatReturns the average requests latency ( ms )floatReturns the web requests throughput ( requests/second )longgetTotal()Returns the total number of requests processed.longReturns the total time (in milliseconds) that it took to process requests.voidvoidsetPrevious(WebRequestsServiceMonitors previous, long timeout) voidMethods inherited from class org.openspaces.pu.service.PlainServiceMonitors
getDetails, getId, getMonitors, setDetails, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
WebRequestsServiceMonitors
public WebRequestsServiceMonitors() -
WebRequestsServiceMonitors
public WebRequestsServiceMonitors(String id, long requests, long requestsActive, long requestsDurationTotal)
-
-
Method Details
-
setPrevious
-
getTotal
public long getTotal()Returns the total number of requests processed. -
getActive
public long getActive()Returns the current number of requests that are active. -
getTotalDuration
public long getTotalDuration()Returns the total time (in milliseconds) that it took to process requests. -
getRequestsThroughput
public float getRequestsThroughput()Returns the web requests throughput ( requests/second ) -
getAverageRequestsLatency
public float getAverageRequestsLatency()Returns the average requests latency ( ms ) -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classPlainServiceMonitors- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classPlainServiceMonitors- Throws:
IOExceptionClassNotFoundException
-