org.apache.hadoop.metrics2
usage.@Deprecated @InterfaceAudience.Public @InterfaceStability.Evolving public class CompositeContext extends AbstractMetricsContext
AbstractMetricsContext.MetricMap, AbstractMetricsContext.TagMap
DEFAULT_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)
AbstractMetricsContext
init
在接口中 MetricsContext
init
在类中 AbstractMetricsContext
contextName
- The given name for this contextfactory
- The creator of this context@InterfaceAudience.Private public MetricsRecord newRecord(String recordName)
AbstractMetricsContext
newRecord
在类中 AbstractMetricsContext
recordName
- the name of the record@InterfaceAudience.Private protected void emitRecord(String contextName, String recordName, OutputRecord outRec) throws IOException
AbstractMetricsContext
emitRecord
在类中 AbstractMetricsContext
IOException
@InterfaceAudience.Private protected void flush() throws IOException
AbstractMetricsContext
flush
在类中 AbstractMetricsContext
IOException
@InterfaceAudience.Private public void startMonitoring() throws IOException
AbstractMetricsContext
startMonitoring
在接口中 MetricsContext
startMonitoring
在类中 AbstractMetricsContext
IOException
@InterfaceAudience.Private public void stopMonitoring()
AbstractMetricsContext
stopMonitoring
在接口中 MetricsContext
stopMonitoring
在类中 AbstractMetricsContext
AbstractMetricsContext.close()
@InterfaceAudience.Private public boolean isMonitoring()
isMonitoring
在接口中 MetricsContext
isMonitoring
在类中 AbstractMetricsContext
@InterfaceAudience.Private public void close()
AbstractMetricsContext
close
在接口中 MetricsContext
close
在类中 AbstractMetricsContext
@InterfaceAudience.Private public void registerUpdater(Updater updater)
AbstractMetricsContext
registerUpdater
在接口中 MetricsContext
registerUpdater
在类中 AbstractMetricsContext
updater
- object to be run periodically; it should update
some metrics records@InterfaceAudience.Private public void unregisterUpdater(Updater updater)
AbstractMetricsContext
unregisterUpdater
在接口中 MetricsContext
unregisterUpdater
在类中 AbstractMetricsContext
updater
- object to be removed from the callback listCopyright © 2009 The Apache Software Foundation