org.openspaces.pu.container.jee.stats
Class WebRequestsServiceMonitors
java.lang.Object
org.openspaces.pu.service.PlainServiceMonitors
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
WebRequestsServiceMonitors
public WebRequestsServiceMonitors()
WebRequestsServiceMonitors
public WebRequestsServiceMonitors(String id,
long requests,
long requestsActive,
long requestsDurationTotal)
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
Copyright © GigaSpaces.