|
ActiveMQ example source code file (CpuReportPlugin.java)
The ActiveMQ CpuReportPlugin.java source code/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.tool.reports.plugins; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.StringTokenizer; import org.apache.activemq.tool.reports.PerformanceStatisticsUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CpuReportPlugin implements ReportPlugin { public static final String NAME_IGNORE_LIST = "$index$timeUnit$r$b$w$swpd$inact$active$free$buff$cache$si$so$in$"; public static final String NAME_BLOCK_RECV = "bi"; public static final String NAME_BLOCK_SENT = "bo"; public static final String NAME_CTX_SWITCH = "cs"; public static final String NAME_USER_TIME = "us"; public static final String NAME_SYS_TIME = "sy"; public static final String NAME_IDLE_TIME = "id"; public static final String NAME_WAIT_TIME = "wa"; public static final String KEY_BLOCK_RECV = "BlocksReceived"; public static final String KEY_BLOCK_SENT = "BlocksSent"; public static final String KEY_CTX_SWITCH = "ContextSwitches"; public static final String KEY_USER_TIME = "UserTime"; public static final String KEY_SYS_TIME = "SystemTime"; public static final String KEY_IDLE_TIME = "IdleTime"; public static final String KEY_WAIT_TIME = "WaitingTime"; public static final String KEY_AVE_BLOCK_RECV = "AveBlocksReceived"; public static final String KEY_AVE_BLOCK_SENT = "AveBlocksSent"; public static final String KEY_AVE_CTX_SWITCH = "AveContextSwitches"; public static final String KEY_AVE_USER_TIME = "AveUserTime"; public static final String KEY_AVE_SYS_TIME = "AveSystemTime"; public static final String KEY_AVE_IDLE_TIME = "AveIdleTime"; public static final String KEY_AVE_WAIT_TIME = "AveWaitingTime"; private static final Logger LOG = LoggerFactory.getLogger(CpuReportPlugin.class); protected List<Long> blockRecv = new ArrayList Other ActiveMQ examples (source code examples)Here is a short list of links related to this ActiveMQ CpuReportPlugin.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.