Class NodeReportPublisher
java.lang.Object
org.apache.hadoop.ozone.container.common.report.ReportPublisher<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.NodeReportProto>
org.apache.hadoop.ozone.container.common.report.NodeReportPublisher
- All Implemented Interfaces:
Runnable
public class NodeReportPublisher
extends ReportPublisher<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.NodeReportProto>
Publishes NodeReport which will be sent to SCM as part of heartbeat.
NodeReport consist of:
- NodeIOStats
- VolumeReports
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.NodeReportProtoGenerate and returns the report which has to be sent as part of heartbeat.protected longReturns the frequency in which this particular report has to be scheduled.Methods inherited from class org.apache.hadoop.ozone.container.common.report.ReportPublisher
getConf, getContext, init, run, setConf
-
Constructor Details
-
NodeReportPublisher
public NodeReportPublisher()
-
-
Method Details
-
getReportFrequency
protected long getReportFrequency()Description copied from class:ReportPublisherReturns the frequency in which this particular report has to be scheduled.- Specified by:
getReportFrequencyin classReportPublisher<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.NodeReportProto>- Returns:
- report interval in milliseconds
-
getReport
protected org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.NodeReportProto getReport() throws IOExceptionDescription copied from class:ReportPublisherGenerate and returns the report which has to be sent as part of heartbeat.- Specified by:
getReportin classReportPublisher<org.apache.hadoop.hdds.protocol.proto.StorageContainerDatanodeProtocolProtos.NodeReportProto>- Returns:
- datanode report
- Throws:
IOException
-