org.objectweb.cjdbc.common.monitor.scheduler
Class AbstractSchedulerDataCollector
java.lang.Object
org.objectweb.cjdbc.common.monitor.AbstractDataCollector
org.objectweb.cjdbc.common.monitor.scheduler.AbstractSchedulerDataCollector
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- NumberReadCollector, NumberRequestsCollector, NumberWriteCollector, PendingTransactionsCollector, PendingWritesCollector
- public abstract class AbstractSchedulerDataCollector
- extends AbstractDataCollector
Abstract class to factor code for scheduler collectors
- Author:
- Nicolas Modrzyk
- See Also:
- Serialized Form
Method Summary |
long |
collectValue()
This is used on the controller side to collect information |
java.lang.String |
getTargetName()
Return the name of the target of this collector |
abstract long |
getValue(java.lang.Object scheduler)
Get information on the scheduler retrieved by collectValue() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
virtualDatabaseName
private java.lang.String virtualDatabaseName
AbstractSchedulerDataCollector
public AbstractSchedulerDataCollector(java.lang.String virtualDatabaseName)
- create a new collector
- Parameters:
virtualDatabaseName
- database accessed to get data
collectValue
public long collectValue()
- Description copied from class:
AbstractDataCollector
- This is used on the controller side to collect information
- Specified by:
collectValue
in class AbstractDataCollector
- Returns:
- the value collected by this collectorsardes@inrialpes.fr
- See Also:
AbstractDataCollector.collectValue()
getValue
public abstract long getValue(java.lang.Object scheduler)
- Get information on the scheduler retrieved by
collectValue()
- Parameters:
scheduler
- to get value from
- Returns:
- collected value
getTargetName
public java.lang.String getTargetName()
- Description copied from class:
AbstractDataCollector
- Return the name of the target of this collector
- Specified by:
getTargetName
in class AbstractDataCollector
- Returns:
- target name
- See Also:
AbstractDataCollector.getTargetName()
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.