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

java.lang.Object
  extended byorg.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
      extended byorg.ow2.jasmine.monitoring.mbeancmd.sampling.ServerData

public class ServerData
extends SampleData

Data retrieved from various parts of the J2EE server. Includes : - machine cpu, if available - JVM cpu, if available - heap committed - heap used - number of threads - pending requests - current sessions - database connections - database busy cnx - waiters - dsleaks - dsfail - sfb instances - ssb instances - ent instances - committed tx - served cnx


Field Summary
private  double cnxRate
          Connection rate (calculated).
private  long currentTotalMemory
          Total memory.
private  long currentUsedMemory
          Used memory.
private  int dsCnxbusy
          Busy datasource connections.
private  int dsCnxGauge
          Datasource connections.
private  int dsLeaks
          Datasource leaks.
private  int dsOpenFailures
          Failed datasource connections.
private  int dsRejectedOpen
          Rejected datasource connections.
private  int dsServed
          Served datasources.
private  int dsWaits
          Datasource waits.
private  int entCacheNb
          Number of entity caches.
private  int entPoolNb
          Number of entity pools.
private static java.lang.String header
           
private  long httpErrorCount
          HTTP errors.
private  double httpRate
          HTTP connection rate (calculated).
private  long httpRequestCount
          HTTP requests.
private  long nbSessions
          Number of sessions.
private  long pendingHttpRequest
          Pending HTTP requests.
private  long pendingTxGauge
          Pending transactions.
private  int sfbCacheNb
          Number of StatefulSessionBean caches.
private  int sfbPoolNb
          Number of StatefulSessionBean pools.
private  int ssbCacheNb
          Number of StatelessSessionBean caches.
private  int ssbPoolNb
          Number of StatelessSessionBean pools.
private  int threadsGauge
          Number of threads.
private  long txCommitedCount
          Commited transactions.
private  double txRate
          Throughput (calculated).
private  long txRollbackCount
          Rollbacked transactions.
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
decimalFormat
 
Constructor Summary
ServerData()
           
 
Method Summary
 void compute(SampleData needs_cast)
          Implementation of inherited abstract method.
 double getCnxRate()
           
 long getCommitedTx()
           
 int getDSCnx()
           
 int getDSCnxBusy()
           
 int getDSFails()
           
 int getDSLeaks()
           
 int getDSRejects()
           
 int getDSServed()
           
 int getDSWaits()
           
 int getEntityCacheNb()
           
 int getEntityPoolNb()
           
 long getHttpErrors()
           
 double getHttpRate()
           
 long getHttpRequests()
           
protected  java.lang.String getInnerPrintData()
          Implementation of inherited abstract method.
protected  java.lang.String getInnerPrintHeader()
          Implementation of inherited abstract method.
 long getMemory()
           
 long getPendingHttp()
           
 long getPendingTx()
           
 long getRollbackTx()
           
 long getSessions()
           
 int getSfbCacheNb()
           
 int getSfbPoolNb()
           
 int getSsbCacheNb()
           
 int getSsbPoolNb()
           
 int getThreads()
           
 double getTxRate()
           
 long getUsedMemory()
           
 void setCommitedTx(long tx)
           
 void setDSCnx(int cnx)
           
 void setDSCnxBusy(int cnx)
           
 void setDSFails(int cnx)
           
 void setDSLeaks(int lk)
           
 void setDSRejects(int rj)
           
 void setDSServed(int dsServed)
           
 void setDSWaits(int w)
           
 void setEntityCacheNb(int nb)
           
 void setEntityPoolNb(int nb)
           
 void setHttpErrors(long req)
           
 void setHttpRequests(long req)
           
 void setMemory(long mem)
           
 void setPendingHttp(long req)
           
 void setPendingTx(long tx)
           
 void setRollbackTx(long tx)
           
 void setSessions(long sess)
           
 void setSfbCacheNb(int nb)
           
 void setSfbPoolNb(int nb)
           
 void setSsbCacheNb(int nb)
           
 void setSsbPoolNb(int nb)
           
 void setThreads(int th)
           
 void setUsedMemory(long mem)
           
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.sampling.SampleData
getAttribute, getAttributeAsDouble, getAttributeAsInt, getAttributeAsLong, getDomain, getName, getPrintHeader, getSampleTime, getSeparator, getServer, 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

httpRate

private double httpRate
HTTP connection rate (calculated).


cnxRate

private double cnxRate
Connection rate (calculated).


txRate

private double txRate
Throughput (calculated).


currentTotalMemory

private long currentTotalMemory
Total memory.


currentUsedMemory

private long currentUsedMemory
Used memory.


threadsGauge

private int threadsGauge
Number of threads.


nbSessions

private long nbSessions
Number of sessions.


pendingHttpRequest

private long pendingHttpRequest
Pending HTTP requests.


httpRequestCount

private long httpRequestCount
HTTP requests.


httpErrorCount

private long httpErrorCount
HTTP errors.


pendingTxGauge

private long pendingTxGauge
Pending transactions.


txCommitedCount

private long txCommitedCount
Commited transactions.


txRollbackCount

private long txRollbackCount
Rollbacked transactions.


dsCnxGauge

private int dsCnxGauge
Datasource connections.


dsCnxbusy

private int dsCnxbusy
Busy datasource connections.


dsOpenFailures

private int dsOpenFailures
Failed datasource connections.


dsRejectedOpen

private int dsRejectedOpen
Rejected datasource connections.


dsLeaks

private int dsLeaks
Datasource leaks.


dsWaits

private int dsWaits
Datasource waits.


dsServed

private int dsServed
Served datasources.


entCacheNb

private int entCacheNb
Number of entity caches.


entPoolNb

private int entPoolNb
Number of entity pools.


ssbCacheNb

private int ssbCacheNb
Number of StatelessSessionBean caches.


ssbPoolNb

private int ssbPoolNb
Number of StatelessSessionBean pools.


sfbCacheNb

private int sfbCacheNb
Number of StatefulSessionBean caches.


sfbPoolNb

private int sfbPoolNb
Number of StatefulSessionBean pools.


header

private static java.lang.String header
Constructor Detail

ServerData

public ServerData()
Method Detail

compute

public void compute(SampleData needs_cast)
Implementation of inherited abstract method.

Specified by:
compute in class SampleData
Parameters:
needs_cast - Previous measurement.
See Also:
SampleData.compute(SampleData)

getInnerPrintHeader

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

Specified by:
getInnerPrintHeader in class SampleData
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
Returns:
The inner (specialized) part of the data for this data type.
See Also:
SampleData.getInnerPrintData()

getHttpRate

public double getHttpRate()
Returns:
HTTP connection rate (calculated).

getCnxRate

public double getCnxRate()
Returns:
Connection rate (calculated).

getTxRate

public double getTxRate()
Returns:
Throughput (calculated).

setMemory

public void setMemory(long mem)
Parameters:
mem - Total memory.

getMemory

public long getMemory()
Returns:
Total memory.

setUsedMemory

public void setUsedMemory(long mem)
Parameters:
mem - Used memory.

getUsedMemory

public long getUsedMemory()
Returns:
Used memory.

setThreads

public void setThreads(int th)
Parameters:
th - Number of threads.

getThreads

public int getThreads()
Returns:
Number of threads.

setSessions

public void setSessions(long sess)
Parameters:
sess - Number of sessions.

getSessions

public long getSessions()
Returns:
Number of sessions.

setPendingHttp

public void setPendingHttp(long req)
Parameters:
req - Pending HTTP requests.

getPendingHttp

public long getPendingHttp()
Returns:
Pending HTTP requests.

setHttpRequests

public void setHttpRequests(long req)
Parameters:
req - HTTP requests.

getHttpRequests

public long getHttpRequests()
Returns:
HTTP requests.

setHttpErrors

public void setHttpErrors(long req)
Parameters:
req - HTTP errors.

getHttpErrors

public long getHttpErrors()
Returns:
HTTP errors.

setPendingTx

public void setPendingTx(long tx)
Parameters:
tx - Pending transactions.

getPendingTx

public long getPendingTx()
Returns:
Pending transactions.

setCommitedTx

public void setCommitedTx(long tx)
Parameters:
tx - Commited transactions.

getCommitedTx

public long getCommitedTx()
Returns:
Commited transactions.

setRollbackTx

public void setRollbackTx(long tx)
Parameters:
tx - Rollbacked transactions.

getRollbackTx

public long getRollbackTx()
Returns:
Rollbacked transactions.

setDSCnx

public void setDSCnx(int cnx)
Parameters:
cnx - Datasource connections.

getDSCnx

public int getDSCnx()
Returns:
Datasource connections.

setDSCnxBusy

public void setDSCnxBusy(int cnx)
Parameters:
cnx - Busy datasource connections.

getDSCnxBusy

public int getDSCnxBusy()
Returns:
Busy datasource connections.

setDSFails

public void setDSFails(int cnx)
Parameters:
cnx - Failed datasource connections.

getDSFails

public int getDSFails()
Returns:
Failed datasource connections.

setDSRejects

public void setDSRejects(int rj)
Parameters:
rj - Rejected datasource connections.

getDSRejects

public int getDSRejects()
Returns:
Rejected datasource connections.

setDSLeaks

public void setDSLeaks(int lk)
Parameters:
lk - Datasource leaks.

getDSLeaks

public int getDSLeaks()
Returns:
Datasource leaks.

setDSWaits

public void setDSWaits(int w)
Parameters:
w - Datasource waits.

getDSWaits

public int getDSWaits()
Returns:
Datasource waits.

getDSServed

public int getDSServed()
Returns:
Served datasources.

setDSServed

public void setDSServed(int dsServed)
Parameters:
dsServed - Served datasources.

setEntityCacheNb

public void setEntityCacheNb(int nb)
Parameters:
nb - Number of entity caches.

getEntityCacheNb

public int getEntityCacheNb()
Returns:
Number of entity caches.

setEntityPoolNb

public void setEntityPoolNb(int nb)
Parameters:
nb - Number of entity pools.

getEntityPoolNb

public int getEntityPoolNb()
Returns:
Number of entity pools.

setSsbCacheNb

public void setSsbCacheNb(int nb)
Parameters:
nb - Number of SSB caches.

getSsbCacheNb

public int getSsbCacheNb()
Returns:
Number of SSB caches.

setSsbPoolNb

public void setSsbPoolNb(int nb)
Parameters:
nb - Number of SSB pools.

getSsbPoolNb

public int getSsbPoolNb()
Returns:
Number of SSB pools.

setSfbCacheNb

public void setSfbCacheNb(int nb)
Parameters:
nb - Number of SFB caches.

getSfbCacheNb

public int getSfbCacheNb()
Returns:
Number of SFB caches.

setSfbPoolNb

public void setSfbPoolNb(int nb)
Parameters:
nb - Number of SFB pools.

getSfbPoolNb

public int getSfbPoolNb()
Returns:
Number of SFB pools.