org.ow2.jasmine.monitoring.mbeancmd.sampling
Class ServletData

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData<ServletData>
      extended by org.ow2.jasmine.monitoring.mbeancmd.sampling.ServletData

public class ServletData
extends SampleData<ServletData>

Data retrieved from servlets.


Field Summary
private  int errorCount
          Error count.
private  double errorRate
          Error rate (computed).
private static java.lang.String header
          Default output header.
private  long maxTime
          Maximal processing time.
private  long minTime
          Minimal processing time.
private  long processingTime
          Processing time.
private  double procTimeReq
          Process time per request (computed).
private  int requestCount
          Request count.
private  double requestRate
          Request rate (computed).
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
decimalFormat
 
Constructor Summary
ServletData()
           
 
Method Summary
 void compute(ServletData prev)
          Implementation of inherited abstract method.
 int getErrorCount()
           
 double getErrorRate()
           
protected  java.lang.String getInnerPrintData()
          Implementation of inherited abstract method.
protected  java.lang.String getInnerPrintHeader()
          Implementation of inherited abstract method.
 long getMaxTime()
           
 long getMinTime()
           
 long getProcessingTime()
           
 double getProcTimeReq()
           
 int getRequestCount()
           
 double getRequestRate()
           
 void setErrorCount(int errorCount)
           
protected  void setErrorRate(double errorRate)
           
 void setMaxTime(long maxTime)
           
 void setMinTime(long minTime)
           
 void setProcessingTime(long processingTime)
           
protected  void setProcTimeReq(double procTimeReq)
           
 void setRequestCount(int requestCount)
           
protected  void setRequestRate(double requestRate)
           
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
getAttribute, getAttributeAsDouble, getAttributeAsInt, getAttributeAsLong, getPrintHeader, getSampleTime, getSeparator, getServerDomain, getServerName, isValid, printData, setAttribute, setObjectName, setSampleTime, setSeparator, setServerInfo, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestCount

private int requestCount
Request count.


errorCount

private int errorCount
Error count.


processingTime

private long processingTime
Processing time.


maxTime

private long maxTime
Maximal processing time.


minTime

private long minTime
Minimal processing time.


requestRate

private double requestRate
Request rate (computed).


errorRate

private double errorRate
Error rate (computed).


procTimeReq

private double procTimeReq
Process time per request (computed).


header

private static final java.lang.String header
Default output header.

See Also:
Constant Field Values
Constructor Detail

ServletData

public ServletData()
Method Detail

compute

public void compute(ServletData prev)
Implementation of inherited abstract method.

Specified by:
compute in class SampleData<ServletData>
Parameters:
prev - Previous measurement.
See Also:
SampleData.compute(SampleData)

getInnerPrintHeader

protected java.lang.String getInnerPrintHeader()
Implementation of inherited abstract method.

Specified by:
getInnerPrintHeader in class SampleData<ServletData>
Returns:
The inner (specialized) part of the header for this data type.
See Also:
SampleData.getInnerPrintHeader()

getInnerPrintData

protected java.lang.String getInnerPrintData()
Implementation of inherited abstract method.

Specified by:
getInnerPrintData in class SampleData<ServletData>
Returns:
The inner (specialized) part of the data for this data type.
See Also:
SampleData.getInnerPrintData()

getRequestCount

public int getRequestCount()
Returns:
Request count.

setRequestCount

public void setRequestCount(int requestCount)
Parameters:
requestCount - Request count.

getErrorCount

public int getErrorCount()
Returns:
Error count.

setErrorCount

public void setErrorCount(int errorCount)
Parameters:
errorCount - Error count.

getProcessingTime

public long getProcessingTime()
Returns:
Processing time.

setProcessingTime

public void setProcessingTime(long processingTime)
Parameters:
processingTime - Processing time.

getMaxTime

public long getMaxTime()
Returns:
Maximal processing time.

setMaxTime

public void setMaxTime(long maxTime)
Parameters:
maxTime - Maximal processing time.

getMinTime

public long getMinTime()
Returns:
Minimal processing time.

setMinTime

public void setMinTime(long minTime)
Parameters:
minTime - Minimal processing time.

getRequestRate

public double getRequestRate()
Returns:
Request rate (computed).

setRequestRate

protected void setRequestRate(double requestRate)
Parameters:
requestRate - Request rate (computed).

getErrorRate

public double getErrorRate()
Returns:
Error rate (computed).

setErrorRate

protected void setErrorRate(double errorRate)
Parameters:
errorRate - Error rate (computed).

getProcTimeReq

public double getProcTimeReq()
Returns:
Process time per request (computed).

setProcTimeReq

protected void setProcTimeReq(double procTimeReq)
Parameters:
procTimeReq - Process time per request (computed).