com.oy.shared.lw.perf.agent
Class BaseMonitor

java.lang.Object
  extended bycom.oy.shared.lw.perf.agent.BaseMonitor
All Implemented Interfaces:
IPerfMonitor
Direct Known Subclasses:
MySqlReplStatusMonitor, ObjectLifetimeMonitor, ObjectPoolMonitor, PipeMonitor, SimpleCounterMonitor, SimpleGaugeMonitor, TaskExecutionMonitor, VirtualMachineMonitor

public abstract class BaseMonitor
extends java.lang.Object
implements IPerfMonitor


Nested Class Summary
 
Nested classes inherited from class com.oy.shared.lw.perf.IPerfMonitor
IPerfMonitor.MockPerfCounterImpl
 
Field Summary
private  java.lang.String[] m_Columns
           
private  java.lang.String m_Desc
           
private  java.lang.String m_Module
           
private  java.lang.String m_Name
           
 
Constructor Summary
BaseMonitor(java.lang.Class module, java.lang.String name, java.lang.String desc, java.lang.String[] columnNames)
           
 
Method Summary
 java.lang.String[] getColumnNames()
           
 java.lang.String getDesc()
           
 java.lang.String getModule()
           
 java.lang.String getName()
           
abstract  long[] getValues()
           
protected static long[] getValues(long[] from, long[] to)
           
 boolean hasValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Module

private java.lang.String m_Module

m_Name

private java.lang.String m_Name

m_Desc

private java.lang.String m_Desc

m_Columns

private java.lang.String[] m_Columns
Constructor Detail

BaseMonitor

public BaseMonitor(java.lang.Class module,
                   java.lang.String name,
                   java.lang.String desc,
                   java.lang.String[] columnNames)
Method Detail

getModule

public java.lang.String getModule()
Specified by:
getModule in interface IPerfMonitor

getName

public java.lang.String getName()
Specified by:
getName in interface IPerfMonitor

getDesc

public java.lang.String getDesc()
Specified by:
getDesc in interface IPerfMonitor

getColumnNames

public java.lang.String[] getColumnNames()
Specified by:
getColumnNames in interface IPerfMonitor

hasValues

public boolean hasValues()
Specified by:
hasValues in interface IPerfMonitor

getValues

protected static long[] getValues(long[] from,
                                  long[] to)

getValues

public abstract long[] getValues()
Specified by:
getValues in interface IPerfMonitor


Copyright (C) 2005-2006 Pavel Simakov
http://www.softwaresecretweapons.com