co.cask.tigon.metrics
Interface MetricsCollectionService

All Superinterfaces:
com.google.common.util.concurrent.Service
All Known Implementing Classes:
NoOpMetricsCollectionService

public interface MetricsCollectionService
extends com.google.common.util.concurrent.Service

Service for collects and publishes metrics.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
 
Method Summary
 MetricsCollector getCollector(MetricsScope scope, String context, String runId)
          Returns the metric collector for the given context.
 
Methods inherited from interface com.google.common.util.concurrent.Service
addListener, isRunning, start, startAndWait, state, stop, stopAndWait
 

Method Detail

getCollector

MetricsCollector getCollector(MetricsScope scope,
                              String context,
                              String runId)
Returns the metric collector for the given context.

Parameters:
context - Name of the context that generating the metric.
runId - The Id fo the given run that generating the metric.
Returns:
A MetricsCollector for emitting metrics.


Copyright © 2014 Cask Data, Inc. Licensed under the Apache License, Version 2.0.