Package org.dashbuilder.backend
Class ClusterMetricsGenerator
- java.lang.Object
-
- org.dashbuilder.backend.ClusterMetricsGenerator
-
- All Implemented Interfaces:
org.dashbuilder.dataset.DataSetGenerator
public class ClusterMetricsGenerator extends Object implements org.dashbuilder.dataset.DataSetGenerator
Generates metrics on an emulated cluster
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLUMN_CPU0static StringCOLUMN_CPU1static StringCOLUMN_DISK_FREEstatic StringCOLUMN_DISK_USEDstatic StringCOLUMN_MEMORY_FREEstatic StringCOLUMN_MEMORY_USEDstatic StringCOLUMN_NETWORK_RXstatic StringCOLUMN_NETWORK_TXstatic StringCOLUMN_PROCESSES_RUNNINGstatic StringCOLUMN_PROCESSES_SLEEPINGstatic StringCOLUMN_SERVERstatic StringCOLUMN_TIMESTAMP
-
Constructor Summary
Constructors Constructor Description ClusterMetricsGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dashbuilder.dataset.DataSetbuildDataSet(Map<String,String> params)Doublecpu(String node, Double last, Double max, Double overloaded)CPU (%) Overloaded values : from 90% to 100%Doubledisk(String node, Double last, Double max, Double overloaded)Disk space (Gb)static voidmain(String[] args)Doublemem(String node, Double last, Double max, Double overloaded)Memory (Gb) Overloaded values : from 3Gb to 4GbDoublenet(String node, Double last, Double max, Double overloaded)Network (kbps)protected static voidprintDataSet(org.dashbuilder.dataset.DataSet dataSet)Helper method to print to standard output the dataset values.Doubleproc(String node, Double last, Double max, Double overloaded)Processes (count) Overloaded values : from 1024 to 1500
-
-
-
Field Detail
-
COLUMN_SERVER
public static final String COLUMN_SERVER
- See Also:
- Constant Field Values
-
COLUMN_TIMESTAMP
public static final String COLUMN_TIMESTAMP
- See Also:
- Constant Field Values
-
COLUMN_CPU0
public static final String COLUMN_CPU0
- See Also:
- Constant Field Values
-
COLUMN_CPU1
public static final String COLUMN_CPU1
- See Also:
- Constant Field Values
-
COLUMN_MEMORY_FREE
public static final String COLUMN_MEMORY_FREE
- See Also:
- Constant Field Values
-
COLUMN_MEMORY_USED
public static final String COLUMN_MEMORY_USED
- See Also:
- Constant Field Values
-
COLUMN_NETWORK_TX
public static final String COLUMN_NETWORK_TX
- See Also:
- Constant Field Values
-
COLUMN_NETWORK_RX
public static final String COLUMN_NETWORK_RX
- See Also:
- Constant Field Values
-
COLUMN_PROCESSES_RUNNING
public static final String COLUMN_PROCESSES_RUNNING
- See Also:
- Constant Field Values
-
COLUMN_PROCESSES_SLEEPING
public static final String COLUMN_PROCESSES_SLEEPING
- See Also:
- Constant Field Values
-
COLUMN_DISK_FREE
public static final String COLUMN_DISK_FREE
- See Also:
- Constant Field Values
-
COLUMN_DISK_USED
public static final String COLUMN_DISK_USED
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildDataSet
public org.dashbuilder.dataset.DataSet buildDataSet(Map<String,String> params)
- Specified by:
buildDataSetin interfaceorg.dashbuilder.dataset.DataSetGenerator
-
proc
public Double proc(String node, Double last, Double max, Double overloaded)
Processes (count) Overloaded values : from 1024 to 1500
-
cpu
public Double cpu(String node, Double last, Double max, Double overloaded)
CPU (%) Overloaded values : from 90% to 100%
-
mem
public Double mem(String node, Double last, Double max, Double overloaded)
Memory (Gb) Overloaded values : from 3Gb to 4Gb
-
printDataSet
protected static void printDataSet(org.dashbuilder.dataset.DataSet dataSet)
Helper method to print to standard output the dataset values.
-
-