org.apache.hadoop.metrics2 usage.@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class CompositeContext extends AbstractMetricsContext
AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMapDEFAULT_PERIOD| 构造器和说明 |
|---|
CompositeContext()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
已过时。
Stops monitoring and frees buffered data, returning this
object to its initial state.
|
protected void |
emitRecord(String contextName,
String recordName,
OutputRecord outRec)
已过时。
Sends a record to the metrics system.
|
protected void |
flush()
已过时。
Called each period after all records have been emitted, this method does nothing.
|
void |
init(String contextName,
ContextFactory factory)
已过时。
Initializes the context.
|
boolean |
isMonitoring()
已过时。
Return true if all subcontexts are monitoring.
|
MetricsRecord |
newRecord(String recordName)
已过时。
Subclasses should override this if they subclass MetricsRecordImpl.
|
void |
registerUpdater(Updater updater)
已过时。
Registers a callback to be called at time intervals determined by
the configuration.
|
void |
startMonitoring()
已过时。
Starts or restarts monitoring, the emitting of metrics records.
|
void |
stopMonitoring()
已过时。
Stops monitoring.
|
void |
unregisterUpdater(Updater updater)
已过时。
Removes a callback, if it exists.
|
createRecord, getAllRecords, getAttribute, getAttributeTable, getContextFactory, getContextName, getPeriod, parseAndSetPeriod, remove, setPeriod, update@InterfaceAudience.Private public CompositeContext()
@InterfaceAudience.Private public void init(String contextName, ContextFactory factory)
AbstractMetricsContextinit 在接口中 MetricsContextinit 在类中 AbstractMetricsContextcontextName - The given name for this contextfactory - The creator of this context@InterfaceAudience.Private public MetricsRecord newRecord(String recordName)
AbstractMetricsContextnewRecord 在类中 AbstractMetricsContextrecordName - the name of the record@InterfaceAudience.Private protected void emitRecord(String contextName, String recordName, OutputRecord outRec) throws IOException
AbstractMetricsContextemitRecord 在类中 AbstractMetricsContextIOException@InterfaceAudience.Private protected void flush() throws IOException
AbstractMetricsContextflush 在类中 AbstractMetricsContextIOException@InterfaceAudience.Private public void startMonitoring() throws IOException
AbstractMetricsContextstartMonitoring 在接口中 MetricsContextstartMonitoring 在类中 AbstractMetricsContextIOException@InterfaceAudience.Private public void stopMonitoring()
AbstractMetricsContextstopMonitoring 在接口中 MetricsContextstopMonitoring 在类中 AbstractMetricsContextAbstractMetricsContext.close()@InterfaceAudience.Private public boolean isMonitoring()
isMonitoring 在接口中 MetricsContextisMonitoring 在类中 AbstractMetricsContext@InterfaceAudience.Private public void close()
AbstractMetricsContextclose 在接口中 MetricsContextclose 在类中 AbstractMetricsContext@InterfaceAudience.Private public void registerUpdater(Updater updater)
AbstractMetricsContextregisterUpdater 在接口中 MetricsContextregisterUpdater 在类中 AbstractMetricsContextupdater - object to be run periodically; it should update
some metrics records@InterfaceAudience.Private public void unregisterUpdater(Updater updater)
AbstractMetricsContextunregisterUpdater 在接口中 MetricsContextunregisterUpdater 在类中 AbstractMetricsContextupdater - object to be removed from the callback listCopyright © 2009 The Apache Software Foundation