public class DefaultMetadataFactory extends Object implements IGangliaMetadataFactory
IGangliaMetadataMessage
for
a metric.Constructor and Description |
---|
DefaultMetadataFactory(String defaultUnits,
GangliaSlopeEnum defaultSlope,
int defaultTMax,
int defaultDMax) |
Modifier and Type | Method and Description |
---|---|
IGangliaMetadataMessage |
newDecl(String hostName,
String metricName,
Object value)
Note: If the metric name contains a
. then the metric will
be placed into a group named by everything in the metricName up to that
. character. |
IGangliaMetadataMessage |
resolve(IGangliaMetadataMessage decl)
Always returns the caller's argument.
|
public DefaultMetadataFactory(String defaultUnits, GangliaSlopeEnum defaultSlope, int defaultTMax, int defaultDMax)
public IGangliaMetadataMessage newDecl(String hostName, String metricName, Object value)
.
then the metric will
be placed into a group named by everything in the metricName up to that
.
character.newDecl
in interface IGangliaMetadataFactory
hostName
- The name of this host.metricName
- The ganglia metric name (suitably munged if necessary for use
by ganglia).value
- The metric value (NOT null
).null
if this factory
does not know how to declare this metric.public IGangliaMetadataMessage resolve(IGangliaMetadataMessage decl)
resolve
in interface IGangliaMetadataFactory
decl
- A declaration (typically received over the wire).Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.