org.apache.activemq.tool.reports.plugins
Class CpuReportPlugin

java.lang.Object
  extended by org.apache.activemq.tool.reports.plugins.CpuReportPlugin
All Implemented Interfaces:
ReportPlugin

public class CpuReportPlugin
extends java.lang.Object
implements ReportPlugin


Field Summary
protected  java.util.List<java.lang.Long> blockRecv
           
protected  java.util.List<java.lang.Long> blockSent
           
protected  java.util.List<java.lang.Long> ctxSwitch
           
protected  java.util.List<java.lang.Long> idleTime
           
static java.lang.String KEY_AVE_BLOCK_RECV
           
static java.lang.String KEY_AVE_BLOCK_SENT
           
static java.lang.String KEY_AVE_CTX_SWITCH
           
static java.lang.String KEY_AVE_IDLE_TIME
           
static java.lang.String KEY_AVE_SYS_TIME
           
static java.lang.String KEY_AVE_USER_TIME
           
static java.lang.String KEY_AVE_WAIT_TIME
           
static java.lang.String KEY_BLOCK_RECV
           
static java.lang.String KEY_BLOCK_SENT
           
static java.lang.String KEY_CTX_SWITCH
           
static java.lang.String KEY_IDLE_TIME
           
static java.lang.String KEY_SYS_TIME
           
static java.lang.String KEY_USER_TIME
           
static java.lang.String KEY_WAIT_TIME
           
static java.lang.String NAME_BLOCK_RECV
           
static java.lang.String NAME_BLOCK_SENT
           
static java.lang.String NAME_CTX_SWITCH
           
static java.lang.String NAME_IDLE_TIME
           
static java.lang.String NAME_IGNORE_LIST
           
static java.lang.String NAME_SYS_TIME
           
static java.lang.String NAME_USER_TIME
           
static java.lang.String NAME_WAIT_TIME
           
protected  java.util.List<java.lang.Long> sysTime
           
protected  java.util.List<java.lang.Long> userTime
           
protected  java.util.List<java.lang.Long> waitTime
           
 
Constructor Summary
CpuReportPlugin()
           
 
Method Summary
protected  void addToCpuList(java.lang.String key, java.lang.String val)
           
 java.util.Map<java.lang.String,java.lang.String> getSummary()
           
 void handleCsvData(java.lang.String csvData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_IGNORE_LIST

public static final java.lang.String NAME_IGNORE_LIST
See Also:
Constant Field Values

NAME_BLOCK_RECV

public static final java.lang.String NAME_BLOCK_RECV
See Also:
Constant Field Values

NAME_BLOCK_SENT

public static final java.lang.String NAME_BLOCK_SENT
See Also:
Constant Field Values

NAME_CTX_SWITCH

public static final java.lang.String NAME_CTX_SWITCH
See Also:
Constant Field Values

NAME_USER_TIME

public static final java.lang.String NAME_USER_TIME
See Also:
Constant Field Values

NAME_SYS_TIME

public static final java.lang.String NAME_SYS_TIME
See Also:
Constant Field Values

NAME_IDLE_TIME

public static final java.lang.String NAME_IDLE_TIME
See Also:
Constant Field Values

NAME_WAIT_TIME

public static final java.lang.String NAME_WAIT_TIME
See Also:
Constant Field Values

KEY_BLOCK_RECV

public static final java.lang.String KEY_BLOCK_RECV
See Also:
Constant Field Values

KEY_BLOCK_SENT

public static final java.lang.String KEY_BLOCK_SENT
See Also:
Constant Field Values

KEY_CTX_SWITCH

public static final java.lang.String KEY_CTX_SWITCH
See Also:
Constant Field Values

KEY_USER_TIME

public static final java.lang.String KEY_USER_TIME
See Also:
Constant Field Values

KEY_SYS_TIME

public static final java.lang.String KEY_SYS_TIME
See Also:
Constant Field Values

KEY_IDLE_TIME

public static final java.lang.String KEY_IDLE_TIME
See Also:
Constant Field Values

KEY_WAIT_TIME

public static final java.lang.String KEY_WAIT_TIME
See Also:
Constant Field Values

KEY_AVE_BLOCK_RECV

public static final java.lang.String KEY_AVE_BLOCK_RECV
See Also:
Constant Field Values

KEY_AVE_BLOCK_SENT

public static final java.lang.String KEY_AVE_BLOCK_SENT
See Also:
Constant Field Values

KEY_AVE_CTX_SWITCH

public static final java.lang.String KEY_AVE_CTX_SWITCH
See Also:
Constant Field Values

KEY_AVE_USER_TIME

public static final java.lang.String KEY_AVE_USER_TIME
See Also:
Constant Field Values

KEY_AVE_SYS_TIME

public static final java.lang.String KEY_AVE_SYS_TIME
See Also:
Constant Field Values

KEY_AVE_IDLE_TIME

public static final java.lang.String KEY_AVE_IDLE_TIME
See Also:
Constant Field Values

KEY_AVE_WAIT_TIME

public static final java.lang.String KEY_AVE_WAIT_TIME
See Also:
Constant Field Values

blockRecv

protected java.util.List<java.lang.Long> blockRecv

blockSent

protected java.util.List<java.lang.Long> blockSent

ctxSwitch

protected java.util.List<java.lang.Long> ctxSwitch

userTime

protected java.util.List<java.lang.Long> userTime

sysTime

protected java.util.List<java.lang.Long> sysTime

idleTime

protected java.util.List<java.lang.Long> idleTime

waitTime

protected java.util.List<java.lang.Long> waitTime
Constructor Detail

CpuReportPlugin

public CpuReportPlugin()
Method Detail

handleCsvData

public void handleCsvData(java.lang.String csvData)
Specified by:
handleCsvData in interface ReportPlugin

getSummary

public java.util.Map<java.lang.String,java.lang.String> getSummary()
Specified by:
getSummary in interface ReportPlugin

addToCpuList

protected void addToCpuList(java.lang.String key,
                            java.lang.String val)


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.