public class ClusterMetricsGenerator extends Object implements DataSetGenerator
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_CPU0 |
static String |
COLUMN_CPU1 |
static String |
COLUMN_DISK_FREE |
static String |
COLUMN_DISK_USED |
static String |
COLUMN_MEMORY_FREE |
static String |
COLUMN_MEMORY_USED |
static String |
COLUMN_NETWORK_RX |
static String |
COLUMN_NETWORK_TX |
static String |
COLUMN_PROCESSES_RUNNING |
static String |
COLUMN_PROCESSES_SLEEPING |
static String |
COLUMN_SERVER |
static String |
COLUMN_TIMESTAMP |
Constructor and Description |
---|
ClusterMetricsGenerator() |
Modifier and Type | Method and Description |
---|---|
DataSet |
buildDataSet(Map<String,String> params) |
Double |
cpu(String node,
Double last,
Double max,
Double overloaded)
CPU (%)
Overloaded values : from 90% to 100%
|
Double |
disk(String node,
Double last,
Double max,
Double overloaded)
Disk space (Gb)
|
static void |
main(String[] args) |
Double |
mem(String node,
Double last,
Double max,
Double overloaded)
Memory (Gb)
Overloaded values : from 3Gb to 4Gb
|
Double |
net(String node,
Double last,
Double max,
Double overloaded)
Network (kbps)
|
protected static void |
printDataSet(DataSet dataSet)
Helper method to print to standard output the dataset values.
|
Double |
proc(String node,
Double last,
Double max,
Double overloaded)
Processes (count)
Overloaded values : from 1024 to 1500
|
public static final String COLUMN_SERVER
public static final String COLUMN_TIMESTAMP
public static final String COLUMN_CPU0
public static final String COLUMN_CPU1
public static final String COLUMN_MEMORY_FREE
public static final String COLUMN_MEMORY_USED
public static final String COLUMN_NETWORK_TX
public static final String COLUMN_NETWORK_RX
public static final String COLUMN_PROCESSES_RUNNING
public static final String COLUMN_PROCESSES_SLEEPING
public static final String COLUMN_DISK_FREE
public static final String COLUMN_DISK_USED
public DataSet buildDataSet(Map<String,String> params)
buildDataSet
in interface DataSetGenerator
public Double proc(String node, Double last, Double max, Double overloaded)
public Double cpu(String node, Double last, Double max, Double overloaded)
public Double mem(String node, Double last, Double max, Double overloaded)
protected static void printDataSet(DataSet dataSet)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.