public interface IGangliaState
Modifier and Type | Method and Description |
---|---|
String |
getHostName()
Return the name of this host.
|
String[] |
getKnownHosts()
Return a snapshot of the known hosts.
|
IGangliaMetadataMessage |
getMetadata(String metricName)
Return the metadata for the given metric.
|
ITimestampMetricValue |
getMetric(String hostName,
String metricName)
Return current
TimestampMetricValue of metric on host
(thread-safe). |
Iterator<? extends ITimestampMetricValue> |
iterator(String hostName)
Return an iterator which will visit all timestamped metrics for the
specified host.
|
String getHostName()
String[] getKnownHosts()
null
.Iterator<? extends ITimestampMetricValue> iterator(String hostName)
hostName
- The host name.null
.IGangliaMetadataMessage getMetadata(String metricName)
metricName
- The metric name (as it appears in ganglia messages).null
.ITimestampMetricValue getMetric(String hostName, String metricName)
TimestampMetricValue
of metric on host
(thread-safe).
If an IGangliaMetadataMessage
is declared for that name, then
either the pre-existing TimestampMetricValue
will be returned
-or- a new TimestampMetricValue
will be atomically created and
returned.
Otherwise, this method will return null
since it lacks the
necessary information to create an IGangliaMetadataMessage
by
itself.
hostName
- The name of the host.metricName
- The name of the metric.null
if there is no IGangliaMetadataMessage
for that metric.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.