This project has retired. For details please refer to its Attic page.
MetricsService (Lens 2.0.1-beta-incubating API)

org.apache.lens.server.api.metrics
Interface MetricsService

All Known Implementing Classes:
MetricsServiceImpl

public interface MetricsService

The Interface MetricsService.


Field Summary
static String ACCEPTED_QUERIES
          The Constant ACCEPTED_QUERIES.
static String CANCELLED_QUERIES
          Query engine counter names.
static String FAILED_QUERIES
          The Constant FAILED_QUERIES.
static String FINISHED_QUERIES
          The Constant FINISHED_QUERIES.
static String NAME
          The Constant NAME.
static String QUEUED_QUERIES
          Query engine gauge names.
static String RUNNING_QUERIES
          The Constant RUNNING_QUERIES.
 
Method Summary
 void decrCounter(Class<?> cls, String counter)
          Decrement a counter with the name costructed using given class and counter name Actual name of the counter will be

 void decrCounter(String counter)
          Decrement a counter with the given name Actual name of the counter will be

 long getCounter(Class<?> cls, String counter)
          Get current value of the counter.
 long getCounter(String counter)
          Get current value of the counter.
 long getFinishedQueries()
           
 long getQueuedQueries()
           
 long getRunningQueries()
           
 long getTotalAcceptedQueries()
           
 long getTotalCancelledQueries()
           
 long getTotalFailedQueries()
           
 long getTotalFinishedQueries()
           
 long getTotalSuccessfulQueries()
           
 void incrCounter(Class<?> cls, String counter)
          Increment a counter with the name constructed using given class and counter name Actual name of the counter will be

 void incrCounter(String counter)
          Increment a counter with the given name Actual name of the counter will be

 void publishReport()
          Publish report.
 

Field Detail

NAME

static final String NAME
The Constant NAME.

See Also:
Constant Field Values

CANCELLED_QUERIES

static final String CANCELLED_QUERIES
Query engine counter names.

See Also:
Constant Field Values

FAILED_QUERIES

static final String FAILED_QUERIES
The Constant FAILED_QUERIES.

See Also:
Constant Field Values

ACCEPTED_QUERIES

static final String ACCEPTED_QUERIES
The Constant ACCEPTED_QUERIES.

See Also:
Constant Field Values

QUEUED_QUERIES

static final String QUEUED_QUERIES
Query engine gauge names.

See Also:
Constant Field Values

RUNNING_QUERIES

static final String RUNNING_QUERIES
The Constant RUNNING_QUERIES.

See Also:
Constant Field Values

FINISHED_QUERIES

static final String FINISHED_QUERIES
The Constant FINISHED_QUERIES.

See Also:
Constant Field Values
Method Detail

incrCounter

void incrCounter(String counter)
Increment a counter with the given name Actual name of the counter will be

MetricRegistry.name(MetricsService.class, counter)
 

Parameters:
counter - the counter

incrCounter

void incrCounter(Class<?> cls,
                 String counter)
Increment a counter with the name constructed using given class and counter name Actual name of the counter will be

MetricRegistry.name(cls, counter)
 

Parameters:
cls - Class of the counter for namespacing the counter
counter - the counter

decrCounter

void decrCounter(Class<?> cls,
                 String counter)
Decrement a counter with the name costructed using given class and counter name Actual name of the counter will be

MetricRegistry.name(cls, counter)
 

Parameters:
cls - Class of the counter for namespacing of counters
counter - the counter

decrCounter

void decrCounter(String counter)
Decrement a counter with the given name Actual name of the counter will be

MetricRegistry.name(MetricsService.class, counter)
 

Parameters:
counter - the counter

getCounter

long getCounter(String counter)
Get current value of the counter.

Parameters:
counter - the counter
Returns:
the counter

getCounter

long getCounter(Class<?> cls,
                String counter)
Get current value of the counter.

Parameters:
cls - the cls
counter - the counter
Returns:
the counter

getQueuedQueries

long getQueuedQueries()

getRunningQueries

long getRunningQueries()

getFinishedQueries

long getFinishedQueries()

getTotalAcceptedQueries

long getTotalAcceptedQueries()

getTotalSuccessfulQueries

long getTotalSuccessfulQueries()

getTotalFinishedQueries

long getTotalFinishedQueries()

getTotalCancelledQueries

long getTotalCancelledQueries()

getTotalFailedQueries

long getTotalFailedQueries()

publishReport

void publishReport()
Publish report.



Copyright © 2014–2015 Apache Software Foundation. All rights reserved.