GigaSpaces XAP 9.7.2 API

org.openspaces.pu.container.jee.stats
Class WebRequestsServiceMonitors

java.lang.Object
  extended by org.openspaces.pu.service.PlainServiceMonitors
      extended by org.openspaces.pu.container.jee.stats.WebRequestsServiceMonitors
All Implemented Interfaces:
Externalizable, Serializable, ServiceMonitors

public class WebRequestsServiceMonitors
extends PlainServiceMonitors

Statistics monitor information for JEE servlet requests.

Author:
kimchy
See Also:
Serialized Form

Nested Class Summary
static class WebRequestsServiceMonitors.Attributes
           
 
Field Summary
 
Fields inherited from class org.openspaces.pu.service.PlainServiceMonitors
details, id, monitors
 
Constructor Summary
WebRequestsServiceMonitors()
           
WebRequestsServiceMonitors(String id, long requests, long requestsActive, long requestsDurationTotal)
           
 
Method Summary
 long getActive()
          Returns the current number of requests that are active.
 float getAverageRequestsLatency()
          Returns the average requests latency ( ms )
 float getRequestsThroughput()
          Returns the web requests throughput ( requests/second )
 long getTotal()
          Returns the total number of requests processed.
 long getTotalDuration()
          Returns the total time (in milliseconds) that it took to process requests.
 void readExternal(ObjectInput in)
           
 void setPrevious(WebRequestsServiceMonitors previous, long timeout)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.openspaces.pu.service.PlainServiceMonitors
getDetails, getId, getMonitors, setDetails, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebRequestsServiceMonitors

public WebRequestsServiceMonitors()

WebRequestsServiceMonitors

public WebRequestsServiceMonitors(String id,
                                  long requests,
                                  long requestsActive,
                                  long requestsDurationTotal)
Method Detail

setPrevious

public void setPrevious(WebRequestsServiceMonitors previous,
                        long timeout)

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

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class PlainServiceMonitors
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class PlainServiceMonitors
Throws:
IOException
ClassNotFoundException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.