Example #1
0
        public static NodeHealthStatus NewInstance(bool isNodeHealthy, string healthReport
                                                   , long lastHealthReport)
        {
            NodeHealthStatus status = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <NodeHealthStatus
                                                                                     >();

            status.SetIsNodeHealthy(isNodeHealthy);
            status.SetHealthReport(healthReport);
            status.SetLastHealthReportTime(lastHealthReport);
            return(status);
        }
Example #2
0
        public static NodeStatus NewInstance(NodeId nodeId, int responseId, IList <ContainerStatus
                                                                                   > containerStatuses, IList <ApplicationId> keepAliveApplications, NodeHealthStatus
                                             nodeHealthStatus)
        {
            NodeStatus nodeStatus = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <NodeStatus>
                                        ();

            nodeStatus.SetResponseId(responseId);
            nodeStatus.SetNodeId(nodeId);
            nodeStatus.SetContainersStatuses(containerStatuses);
            nodeStatus.SetKeepAliveApplications(keepAliveApplications);
            nodeStatus.SetNodeHealthStatus(nodeHealthStatus);
            return(nodeStatus);
        }
Example #3
0
 public abstract void SetNodeHealthStatus(NodeHealthStatus healthStatus);