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

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.PendingRequestsCollector
All Implemented Interfaces:
java.io.Serializable

public class PendingRequestsCollector
extends AbstractBackendDataCollector

Return total of currently pending requests 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
PendingRequestsCollector(java.lang.String backendName, java.lang.String virtualDatabaseName)
           
 
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

PendingRequestsCollector

public PendingRequestsCollector(java.lang.String backendName,
                                java.lang.String virtualDatabaseName)
Parameters:
backendName - of the backend to get data from
virtualDatabaseName - database accessed to get data
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.