Package com.attivio.platform.perfmon.api
Interface MetricRegistrar
-
public interface MetricRegistrar
Interface for registration of metrics
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REGISTAR_API_OBJECT_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<long[]>
registerDerivedMetrics(java.util.List<DerivedMetricDefinition> derivedMetricDefs)
registers the derived metrics and returns their idsjava.util.List<java.lang.Long>
registerMetricInstances(RemoteEndpoint endpoints, java.util.List<MetricInstance> instances)
registers the source as providing the instance and returns the server-side unique id for the instancejava.util.List<java.lang.Long>
registerMetrics(java.util.List<Metric> metrics)
registers the metric and returns the server-side unique id for it.
-
-
-
Field Detail
-
REGISTAR_API_OBJECT_NAME
static final java.lang.String REGISTAR_API_OBJECT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerMetrics
java.util.List<java.lang.Long> registerMetrics(java.util.List<Metric> metrics)
registers the metric and returns the server-side unique id for it. this id should be set on Metric objects referenced by instances before callingregisterMetricInstances(RemoteEndpoint, List)
-
registerDerivedMetrics
java.util.List<long[]> registerDerivedMetrics(java.util.List<DerivedMetricDefinition> derivedMetricDefs)
registers the derived metrics and returns their ids
-
registerMetricInstances
java.util.List<java.lang.Long> registerMetricInstances(RemoteEndpoint endpoints, java.util.List<MetricInstance> instances)
registers the source as providing the instance and returns the server-side unique id for the instance- Throws:
java.io.IOException
- if registrar cannot connect to remote endpoint.
-
-