Interface MetricRegistrar


  • public interface MetricRegistrar
    Interface for registration of metrics
    • 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 calling registerMetricInstances(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.