public class GangliaMetadataFactory extends Object implements IGangliaMetadataFactory
| Constructor and Description |
|---|
GangliaMetadataFactory(DefaultMetadataFactory defaultFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IGangliaMetadataFactory factory) |
IGangliaMetadataMessage |
newDecl(String hostName,
String metricName,
Object value)
Factory for new declarations.
|
IGangliaMetadataMessage |
resolve(IGangliaMetadataMessage decl)
Always returns the caller's argument.
|
public GangliaMetadataFactory(DefaultMetadataFactory defaultFactory)
public void add(IGangliaMetadataFactory factory)
public IGangliaMetadataMessage newDecl(String hostName, String metricName, Object value)
Overridden to try each registered delegate first and then the fallback delegate specified in the constructor. The first declaration returned by a delegate is returned to the caller.
newDecl in interface IGangliaMetadataFactoryhostName - 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 IGangliaMetadataFactorydecl - A declaration (typically received over the wire).Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.