org.objectweb.cjdbc.common.monitor.controller
Class AbstractControllerDataCollector

java.lang.Object
  extended byorg.objectweb.cjdbc.common.monitor.AbstractDataCollector
      extended byorg.objectweb.cjdbc.common.monitor.controller.AbstractControllerDataCollector
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ControllerIdleThreadsCollector, ControllerWorkerPendingQueueCollector, ThreadsCountCollector, TotalMemoryCollector, UsedMemoryCollector

public abstract class AbstractControllerDataCollector
extends AbstractDataCollector

Abstract data collector to factor code for the controller collectors

Author:
Nicolas Modrzyk
See Also:
Serialized Form

Field Summary
private  java.lang.String controllerName
           
 
Fields inherited from class org.objectweb.cjdbc.common.monitor.AbstractDataCollector
controller
 
Constructor Summary
AbstractControllerDataCollector()
          Default constructors
AbstractControllerDataCollector(java.lang.Object controller)
          Create a new collector for controller and set the name
 
Method Summary
abstract  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
 
Methods inherited from class org.objectweb.cjdbc.common.monitor.AbstractDataCollector
getDescription, setController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controllerName

private java.lang.String controllerName
Constructor Detail

AbstractControllerDataCollector

public AbstractControllerDataCollector()
Default constructors


AbstractControllerDataCollector

public AbstractControllerDataCollector(java.lang.Object controller)
Create a new collector for controller and set the name

Parameters:
controller - attached to the collector
Method Detail

collectValue

public abstract 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()

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.