org.apache.hadoop.metrics.file
Class FileContext

java.lang.Object
  extended by org.apache.hadoop.metrics.spi.AbstractMetricsContext
      extended by org.apache.hadoop.metrics.file.FileContext
All Implemented Interfaces:
org.apache.hadoop.metrics.MetricsContext

Deprecated.

@InterfaceAudience.Public
@InterfaceStability.Evolving
@Deprecated
public class FileContext
extends AbstractMetricsContext

Metrics context for writing metrics to a file.

This class is configured by setting ContextFactory attributes which in turn are usually configured through a properties file. All the attributes are prefixed by the contextName. For example, the properties file might contain:

 myContextName.fileName=/tmp/metrics.log
 myContextName.period=5
 

See Also:
for metrics 2.0.

Field Summary
 
Fields inherited from interface org.apache.hadoop.metrics.MetricsContext
DEFAULT_PERIOD
 
Constructor Summary
FileContext()
          Deprecated. Creates a new instance of FileContext
 
Method Summary
 
Methods inherited from class org.apache.hadoop.metrics.spi.AbstractMetricsContext
close, createRecord, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, isMonitoring, newRecord, parseAndSetPeriod, registerUpdater, remove, setPeriod, unregisterUpdater, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileContext

@InterfaceAudience.Private
public FileContext()
Deprecated. 
Creates a new instance of FileContext



Copyright © 2014 Apache Software Foundation. All Rights Reserved.