org.objectweb.cjdbc.common.monitor.client
Class ClientActiveTimeCollector

java.lang.Object
  extended byorg.objectweb.cjdbc.common.monitor.AbstractDataCollector
      extended byorg.objectweb.cjdbc.common.monitor.client.AbstractClientDataCollector
          extended byorg.objectweb.cjdbc.common.monitor.client.ClientActiveTimeCollector
All Implemented Interfaces:
java.io.Serializable

public class ClientActiveTimeCollector
extends AbstractClientDataCollector

Return active time for this client

Author:
Nicolas Modrzyk
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.cjdbc.common.monitor.client.AbstractClientDataCollector
 
Fields inherited from class org.objectweb.cjdbc.common.monitor.AbstractDataCollector
controller
 
Constructor Summary
ClientActiveTimeCollector(java.lang.String clientId, 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 client)
          We have the client object so let's get the value we want from ot
 
Methods inherited from class org.objectweb.cjdbc.common.monitor.client.AbstractClientDataCollector
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
 

Constructor Detail

ClientActiveTimeCollector

public ClientActiveTimeCollector(java.lang.String clientId,
                                 java.lang.String virtualDatabaseName)
                          throws DataCollectorException
create new collector

Parameters:
clientId - user name of the client
virtualDatabaseName - that contains this backend
Throws:
DataCollectorException - if cannot access client
Method Detail

getValue

public long getValue(java.lang.Object client)
Description copied from class: AbstractClientDataCollector
We have the client object so let's get the value we want from ot

Specified by:
getValue in class AbstractClientDataCollector
Parameters:
client - as an object to allow it through RMI, but IS a VirtualDatabaseWorkerThread
Returns:
the 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.