class NodeReportHandler implements EventHandler<NodeReportFromDatanode> {

  @Override
  public void onMessage(NodeReportFromDatanode nodeReportFromDatanode,
      EventPublisher publisher) {
    Preconditions.checkNotNull(nodeReportFromDatanode);
    DatanodeDetails dn = nodeReportFromDatanode.getDatanodeDetails();
    Preconditions.checkNotNull(dn, "NodeReport is "
        + "missing DatanodeDetails.");
    nodeManager
        .processNodeReport(dn, nodeReportFromDatanode.getReport());
  }

  public  NodeReportHandler(NodeManager nodeManager);

}