static public NameNodeStatusModel CreateModel(INameNodeStatus nameNodeStatus, IDataNodesStatus dataNodesStatus) { var model = new NameNodeStatusModel { Started = nameNodeStatus.Started, LiveNodes = dataNodesStatus.LiveNodes, DeadNodes = dataNodesStatus.DeadNodes }; return(model); }
public CdfsHealthController(INameNodeStatus nameNodeStatus, IDataNodesStatus dataNodesStatus) { _nameNodeStatus = nameNodeStatus; _dataNodesStatus = dataNodesStatus; }