|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hive.service.AbstractService
org.apache.lens.server.MetricsServiceImpl
public class MetricsServiceImpl
The Class MetricsServiceImpl.
| Nested Class Summary | |
|---|---|
class |
MetricsServiceImpl.AsyncQueryStatusListener
The listener interface for receiving asyncQueryStatus events. |
| Nested classes/interfaces inherited from interface org.apache.hive.service.Service |
|---|
org.apache.hive.service.Service.STATE |
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOG
The Constant LOG. |
static String |
METRICS_SVC_NAME
The Constant METRICS_SVC_NAME. |
| Fields inherited from interface org.apache.lens.server.api.metrics.MetricsService |
|---|
ACCEPTED_QUERIES, CANCELLED_QUERIES, FAILED_QUERIES, FINISHED_QUERIES, NAME, QUEUED_QUERIES, RUNNING_QUERIES |
| Constructor Summary | |
|---|---|
MetricsServiceImpl(String name)
Instantiates a new metrics service impl. |
|
| 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 |
init(org.apache.hadoop.hive.conf.HiveConf hiveConf)
|
void |
publishReport()
Publish report. |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.hive.service.AbstractService |
|---|
getHiveConf, getName, getServiceState, getStartTime, register, unregister |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String METRICS_SVC_NAME
public static final org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public MetricsServiceImpl(String name)
name - the name| Method Detail |
|---|
public void init(org.apache.hadoop.hive.conf.HiveConf hiveConf)
init in interface org.apache.hive.service.Serviceinit in class org.apache.hive.service.AbstractServicepublic void start()
start in interface org.apache.hive.service.Servicestart in class org.apache.hive.service.AbstractServicepublic void stop()
stop in interface org.apache.hive.service.Servicestop in class org.apache.hive.service.AbstractServicepublic void incrCounter(String counter)
MetricsServiceMetricRegistry.name(MetricsService.class, counter)
incrCounter in interface MetricsServicecounter - the counterpublic void decrCounter(String counter)
MetricsServiceMetricRegistry.name(MetricsService.class, counter)
decrCounter in interface MetricsServicecounter - the counter
public void incrCounter(Class<?> cls,
String counter)
MetricsServiceMetricRegistry.name(cls, counter)
incrCounter in interface MetricsServicecls - Class of the counter for namespacing the countercounter - the counter
public void decrCounter(Class<?> cls,
String counter)
MetricsServiceMetricRegistry.name(cls, counter)
decrCounter in interface MetricsServicecls - Class of the counter for namespacing of counterscounter - the counterpublic long getCounter(String counter)
MetricsService
getCounter in interface MetricsServicecounter - the counter
public long getCounter(Class<?> cls,
String counter)
MetricsService
getCounter in interface MetricsServicecls - the clscounter - the counter
public long getQueuedQueries()
getQueuedQueries in interface MetricsServicepublic long getRunningQueries()
getRunningQueries in interface MetricsServicepublic long getFinishedQueries()
getFinishedQueries in interface MetricsServicepublic long getTotalAcceptedQueries()
getTotalAcceptedQueries in interface MetricsServicepublic long getTotalFinishedQueries()
getTotalFinishedQueries in interface MetricsServicepublic long getTotalCancelledQueries()
getTotalCancelledQueries in interface MetricsServicepublic long getTotalFailedQueries()
getTotalFailedQueries in interface MetricsServicepublic void publishReport()
MetricsService
publishReport in interface MetricsServicepublic long getTotalSuccessfulQueries()
getTotalSuccessfulQueries in interface MetricsService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||