org.objectweb.cjdbc.common.monitor
Class DataCollectionNames

java.lang.Object
  extended byorg.objectweb.cjdbc.common.monitor.DataCollectionNames
All Implemented Interfaces:
DataCollection

public class DataCollectionNames
extends java.lang.Object
implements DataCollection

Name convertions for data collection types.

Author:
Nicolas Modrzyk

Field Summary
 
Fields inherited from interface org.objectweb.cjdbc.common.monitor.DataCollection
BACKEND_ACTIVE_TRANSACTION, BACKEND_PENDING_REQUESTS, BACKEND_TOTAL_ACTIVE_CONNECTIONS, BACKEND_TOTAL_READ_REQUEST, BACKEND_TOTAL_REQUEST, BACKEND_TOTAL_TRANSACTIONS, BACKEND_TOTAL_WRITE_REQUEST, CACHE_STATS_COUNT_HITS, CACHE_STATS_COUNT_INSERT, CACHE_STATS_COUNT_SELECT, CACHE_STATS_HITS_PERCENTAGE, CACHE_STATS_NUMBER_ENTRIES, CLIENT_BYTES_READ, CLIENT_BYTES_WRITTEN, CLIENT_READING_SPEED, CLIENT_TIME_ACTIVE, CLIENT_WRITING_SPEED, CONTROLLER_IDLE_WORKER_THREADS, CONTROLLER_THREADS_NUMBER, CONTROLLER_TOTAL_MEMORY, CONTROLLER_USED_MEMORY, CONTROLLER_WORKER_PENDING_QUEUE, DATABASES_ACTIVE_THREADS, DATABASES_NUMBER_OF_THREADS, DATABASES_PENDING_CONNECTIONS, SCHEDULER_NUMBER_READ, SCHEDULER_NUMBER_REQUESTS, SCHEDULER_NUMBER_WRITES, SCHEDULER_PENDING_TRANSACTIONS, SCHEDULER_PENDING_WRITES
 
Constructor Summary
DataCollectionNames()
           
 
Method Summary
static java.lang.String get(int dataType)
          Convert the type reference of a collector into a String
static int getTypeFromCommand(java.lang.String command)
          Return the type of the collector corresponding to the command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataCollectionNames

public DataCollectionNames()
Method Detail

get

public static java.lang.String get(int dataType)
Convert the type reference of a collector into a String

Parameters:
dataType - see DataCollection
Returns:
a String that describes the collector

getTypeFromCommand

public static int getTypeFromCommand(java.lang.String command)
Return the type of the collector corresponding to the command

Parameters:
command - to get type form
Returns:
an int


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