GigaSpaces XAP 7.0 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.
 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 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

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.


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 7.0 API

Copyright © GigaSpaces.