org.objectweb.cjdbc.common.monitor.backend
Class ReadRequestsCollector

java.lang.Object
  extended byorg.objectweb.cjdbc.common.monitor.AbstractDataCollector
      extended byorg.objectweb.cjdbc.common.monitor.backend.AbstractBackendDataCollector
          extended byorg.objectweb.cjdbc.common.monitor.backend.ReadRequestsCollector
All Implemented Interfaces:
java.io.Serializable

public class ReadRequestsCollector
extends AbstractBackendDataCollector

Return total of currently read requests made on this backend

Author:
Nicolas Modrzyk
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class org.objectweb.cjdbc.common.monitor.backend.AbstractBackendDataCollector
 
Fields inherited from class org.objectweb.cjdbc.common.monitor.AbstractDataCollector
controller
 
Constructor Summary
ReadRequestsCollector(java.lang.String backendName, java.lang.String virtualDatabaseName)
          create new collector
 
Method Summary
 java.lang.String getDescription()
          Get a string description for this collector
 long getValue(java.lang.Object backend)
          get the proper collected value when we have instace of the backend
 
Methods inherited from class org.objectweb.cjdbc.common.monitor.backend.AbstractBackendDataCollector
collectValue, getTargetName
 
Methods inherited from class org.objectweb.cjdbc.common.monitor.AbstractDataCollector
setController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ReadRequestsCollector

public ReadRequestsCollector(java.lang.String backendName,
                             java.lang.String virtualDatabaseName)
create new collector

Parameters:
backendName - to collect data from
virtualDatabaseName - that contains this backend
Method Detail

getValue

public long getValue(java.lang.Object backend)
Description copied from class: AbstractBackendDataCollector
get the proper collected value when we have instace of the backend

Specified by:
getValue in class AbstractBackendDataCollector
Parameters:
backend - DatabaseBackend instance
Returns:
collected value
See Also:
AbstractDataCollector.collectValue()

getDescription

public java.lang.String getDescription()
Description copied from class: AbstractDataCollector
Get a string description for this collector

Specified by:
getDescription in class AbstractDataCollector
Returns:
translated string
See Also:
AbstractDataCollector.getDescription()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.