예제 #1
0
        static public NameNodeStatusModel CreateModel(INameNodeStatus nameNodeStatus, IDataNodesStatus dataNodesStatus)
        {
            var model = new NameNodeStatusModel
            {
                Started   = nameNodeStatus.Started,
                LiveNodes = dataNodesStatus.LiveNodes,
                DeadNodes = dataNodesStatus.DeadNodes
            };

            return(model);
        }
예제 #2
0
 public CdfsHealthController(INameNodeStatus nameNodeStatus, IDataNodesStatus dataNodesStatus)
 {
     _nameNodeStatus  = nameNodeStatus;
     _dataNodesStatus = dataNodesStatus;
 }