org.apache.hadoop.hive.common.metrics
Class MetricsMBeanImpl
java.lang.Object
org.apache.hadoop.hive.common.metrics.MetricsMBeanImpl
- All Implemented Interfaces:
- DynamicMBean, MetricsMBean
public class MetricsMBeanImpl
- extends Object
- implements MetricsMBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricsMBeanImpl
public MetricsMBeanImpl()
getAttribute
public Object getAttribute(String arg0)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
getAttributes
public AttributeList getAttributes(String[] arg0)
- Specified by:
getAttributes
in interface DynamicMBean
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interface DynamicMBean
invoke
public Object invoke(String name,
Object[] args,
String[] signature)
throws MBeanException,
ReflectionException
- Specified by:
invoke
in interface DynamicMBean
- Throws:
MBeanException
ReflectionException
setAttribute
public void setAttribute(Attribute attr)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
setAttributes
public AttributeList setAttributes(AttributeList arg0)
- Specified by:
setAttributes
in interface DynamicMBean
hasKey
public boolean hasKey(String name)
- Description copied from interface:
MetricsMBean
- Check if we're tracking a certain named key/metric
- Specified by:
hasKey
in interface MetricsMBean
put
public void put(String name,
Object value)
throws IOException
- Description copied from interface:
MetricsMBean
- Add a key/metric and its value to track
- Specified by:
put
in interface MetricsMBean
- Parameters:
name
- Name of the key/metricvalue
- value associated with the key
- Throws:
IOException
get
public Object get(String name)
throws IOException
- Specified by:
get
in interface MetricsMBean
- Returns:
- value associated with the key
- Throws:
IOException
reset
public void reset()
Copyright © 2011 The Apache Software Foundation