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 Object
implements ReportPlugin


Field Summary
protected  List<Long> blockRecv
           
protected  List<Long> blockSent
           
protected  List<Long> ctxSwitch
           
protected  List<Long> idleTime
           
static String KEY_AVE_BLOCK_RECV
           
static String KEY_AVE_BLOCK_SENT
           
static String KEY_AVE_CTX_SWITCH
           
static String KEY_AVE_IDLE_TIME
           
static String KEY_AVE_SYS_TIME
           
static String KEY_AVE_USER_TIME
           
static String KEY_AVE_WAIT_TIME
           
static String KEY_BLOCK_RECV
           
static String KEY_BLOCK_SENT
           
static String KEY_CTX_SWITCH
           
static String KEY_IDLE_TIME
           
static String KEY_SYS_TIME
           
static String KEY_USER_TIME
           
static String KEY_WAIT_TIME
           
static String NAME_BLOCK_RECV
           
static String NAME_BLOCK_SENT
           
static String NAME_CTX_SWITCH
           
static String NAME_IDLE_TIME
           
static String NAME_IGNORE_LIST
           
static String NAME_SYS_TIME
           
static String NAME_USER_TIME
           
static String NAME_WAIT_TIME
           
protected  List<Long> sysTime
           
protected  List<Long> userTime
           
protected  List<Long> waitTime
           
 
Constructor Summary
CpuReportPlugin()
           
 
Method Summary
protected  void addToCpuList(String key, String val)
           
 Map<String,String> getSummary()
           
 void handleCsvData(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 String NAME_IGNORE_LIST
See Also:
Constant Field Values

NAME_BLOCK_RECV

public static final String NAME_BLOCK_RECV
See Also:
Constant Field Values

NAME_BLOCK_SENT

public static final String NAME_BLOCK_SENT
See Also:
Constant Field Values

NAME_CTX_SWITCH

public static final String NAME_CTX_SWITCH
See Also:
Constant Field Values

NAME_USER_TIME

public static final String NAME_USER_TIME
See Also:
Constant Field Values

NAME_SYS_TIME

public static final String NAME_SYS_TIME
See Also:
Constant Field Values

NAME_IDLE_TIME

public static final String NAME_IDLE_TIME
See Also:
Constant Field Values

NAME_WAIT_TIME

public static final String NAME_WAIT_TIME
See Also:
Constant Field Values

KEY_BLOCK_RECV

public static final String KEY_BLOCK_RECV
See Also:
Constant Field Values

KEY_BLOCK_SENT

public static final String KEY_BLOCK_SENT
See Also:
Constant Field Values

KEY_CTX_SWITCH

public static final String KEY_CTX_SWITCH
See Also:
Constant Field Values

KEY_USER_TIME

public static final String KEY_USER_TIME
See Also:
Constant Field Values

KEY_SYS_TIME

public static final String KEY_SYS_TIME
See Also:
Constant Field Values

KEY_IDLE_TIME

public static final String KEY_IDLE_TIME
See Also:
Constant Field Values

KEY_WAIT_TIME

public static final String KEY_WAIT_TIME
See Also:
Constant Field Values

KEY_AVE_BLOCK_RECV

public static final String KEY_AVE_BLOCK_RECV
See Also:
Constant Field Values

KEY_AVE_BLOCK_SENT

public static final String KEY_AVE_BLOCK_SENT
See Also:
Constant Field Values

KEY_AVE_CTX_SWITCH

public static final String KEY_AVE_CTX_SWITCH
See Also:
Constant Field Values

KEY_AVE_USER_TIME

public static final String KEY_AVE_USER_TIME
See Also:
Constant Field Values

KEY_AVE_SYS_TIME

public static final String KEY_AVE_SYS_TIME
See Also:
Constant Field Values

KEY_AVE_IDLE_TIME

public static final String KEY_AVE_IDLE_TIME
See Also:
Constant Field Values

KEY_AVE_WAIT_TIME

public static final String KEY_AVE_WAIT_TIME
See Also:
Constant Field Values

blockRecv

protected List<Long> blockRecv

blockSent

protected List<Long> blockSent

ctxSwitch

protected List<Long> ctxSwitch

userTime

protected List<Long> userTime

sysTime

protected List<Long> sysTime

idleTime

protected List<Long> idleTime

waitTime

protected List<Long> waitTime
Constructor Detail

CpuReportPlugin

public CpuReportPlugin()
Method Detail

handleCsvData

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

getSummary

public Map<String,String> getSummary()
Specified by:
getSummary in interface ReportPlugin

addToCpuList

protected void addToCpuList(String key,
                            String val)


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.