L - the type of the protocol specific location, typically a subclass of NodeLocationpublic interface SamplingService<L>
MonitoredEndpoint.| Modifier and Type | Method and Description |
|---|---|
MonitoredEndpoint<MonitorServiceConfiguration.EndpointConfiguration> |
getMonitoredEndpoint() |
void |
measureAvails(Collection<MeasurementInstance<L,AvailType<L>>> instances,
Consumer<AvailDataPoint> consumer)
Checks the availabilities defined by
instances and reports them back to the given consumer. |
void |
measureMetrics(Collection<MeasurementInstance<L,MetricType<L>>> instances,
Consumer<MetricDataPoint> consumer)
Collects the metrics defined by
instances and reports them back to the given consumer. |
MonitoredEndpoint<MonitorServiceConfiguration.EndpointConfiguration> getMonitoredEndpoint()
void measureAvails(Collection<MeasurementInstance<L,AvailType<L>>> instances, Consumer<AvailDataPoint> consumer)
instances and reports them back to the given consumer.
If the relevant Endpoint is unreachable all instances are reported as Avail.DOWN.instances - the availabilities to checkconsumer - the consumer to send the results tovoid measureMetrics(Collection<MeasurementInstance<L,MetricType<L>>> instances, Consumer<MetricDataPoint> consumer)
instances and reports them back to the given consumer.instances - the metrics to checkconsumer - the consumer to send the results toCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.