org.objectweb.cjdbc.common.monitor
Class AbstractDataCollector

java.lang.Object
  extended byorg.objectweb.cjdbc.common.monitor.AbstractDataCollector
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AbstractBackendDataCollector, AbstractCacheStatsDataCollector, AbstractClientDataCollector, AbstractControllerDataCollector, AbstractSchedulerDataCollector, AbstractVirtualDatabaseDataCollector

public abstract class AbstractDataCollector
extends java.lang.Object
implements java.io.Serializable

This defines the abstract hierachy to collect monitoring information. All monitored information from the controller should extends this class. collectValue can therefore NOT be called directly on the client side. Instead, the client should be only given the returned result.

Author:
Nicolas Modrzyk
See Also:
Serialized Form

Field Summary
protected  java.lang.Object controller
           
 
Constructor Summary
AbstractDataCollector()
           
 
Method Summary
abstract  long collectValue()
          This is used on the controller side to collect information
abstract  java.lang.String getDescription()
          Get a string description for this collector
abstract  java.lang.String getTargetName()
          Return the name of the target of this collector
 void setController(java.lang.Object controller)
          associated a controller to this data collector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

protected transient java.lang.Object controller
Constructor Detail

AbstractDataCollector

public AbstractDataCollector()
Method Detail

collectValue

public abstract long collectValue()
                           throws DataCollectorException
This is used on the controller side to collect information

Returns:
the value collected by this collectorsardes@inrialpes.fr
Throws:
DataCollectorException - if fails to collect the information

getDescription

public abstract java.lang.String getDescription()
Get a string description for this collector

Returns:
translated string

getTargetName

public abstract java.lang.String getTargetName()
Return the name of the target of this collector

Returns:
target name

setController

public void setController(java.lang.Object controller)
associated a controller to this data collector

Parameters:
controller - to associate


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