public class AggDataFromCluster extends TurbineData
The AggregateClusterMonitor aggregates all
DataFromSingleInstance that it receives from various
InstanceMonitors and represents the combined sum of the data
attributes in this class.
| Modifier and Type | Class and Description |
|---|---|
static class |
AggDataFromCluster.UnitTest |
TurbineData.Keykey| Constructor and Description |
|---|
AggDataFromCluster(TurbineDataMonitor<AggDataFromCluster> monitor,
java.lang.String type,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatsDataFromSingleServer(DataFromSingleInstance data)
Update the cluster data with the data from this single host.
|
java.util.HashMap<java.lang.String,java.util.Map<java.lang.String,? extends java.lang.Number>> |
getNestedMapAttributes() |
java.util.HashMap<java.lang.String,java.lang.Long> |
getNumericAttributes() |
java.lang.String |
getReportingDataDebug() |
int |
getReportingHostsCount()
How many hosts have reported to this aggregate data.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getStringAttributes() |
void |
performPostProcessing()
Called after data is aggregated from a given InstanceMonitor
|
java.util.concurrent.atomic.AtomicLong |
putIfAbsent(java.lang.String key,
java.lang.Long value) |
void |
removeDataForHost(Instance host)
This is called when a host connection gets disconnected and we remove the data from that source.
|
getAttributes, getCreationTime, getKey, getMonitor, getName, getRolling2MinuteStats, getType, setCreationTime, toStringpublic AggDataFromCluster(TurbineDataMonitor<AggDataFromCluster> monitor, java.lang.String type, java.lang.String name)
monitor - type - name - public java.util.HashMap<java.lang.String,java.lang.Long> getNumericAttributes()
getNumericAttributes in class TurbineDatapublic java.util.HashMap<java.lang.String,java.lang.String> getStringAttributes()
getStringAttributes in class TurbineDatapublic java.util.HashMap<java.lang.String,java.util.Map<java.lang.String,? extends java.lang.Number>> getNestedMapAttributes()
getNestedMapAttributes in class TurbineDatapublic int getReportingHostsCount()
public void performPostProcessing()
public java.lang.String getReportingDataDebug()
public void addStatsDataFromSingleServer(DataFromSingleInstance data)
If this host already added data in the past it will first remove that data (subtract) and then add the newly updated data.
data - public void removeDataForHost(Instance host)
host - public java.util.concurrent.atomic.AtomicLong putIfAbsent(java.lang.String key,
java.lang.Long value)