org.apache.hadoop.hive.common.metrics
Interface MetricsMBean

All Superinterfaces:
DynamicMBean
All Known Implementing Classes:
MetricsMBeanImpl

public interface MetricsMBean
extends DynamicMBean

MBean definition for metrics tracking from jmx


Method Summary
 Object get(String name)
           
 boolean hasKey(String name)
          Check if we're tracking a certain named key/metric
 void put(String name, Object value)
          Add a key/metric and its value to track
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, getMBeanInfo, invoke, setAttribute, setAttributes
 

Method Detail

hasKey

boolean hasKey(String name)
Check if we're tracking a certain named key/metric


put

void put(String name,
         Object value)
         throws IOException
Add a key/metric and its value to track

Parameters:
name - Name of the key/metric
value - value associated with the key
Throws:
Exception
IOException

get

Object get(String name)
           throws IOException
Parameters:
name -
Returns:
value associated with the key
Throws:
Exception
IOException


Copyright © 2013 The Apache Software Foundation