Example usage for org.apache.hadoop.yarn.api.records ContainerState NEW

List of usage examples for org.apache.hadoop.yarn.api.records ContainerState NEW

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.api.records ContainerState NEW.

Prototype

ContainerState NEW

To view the source code for org.apache.hadoop.yarn.api.records ContainerState NEW.

Click Source Link

Document

New container

Usage

From source file:org.apache.myriad.scheduler.fgs.NMHeartBeatHandler.java

License:Apache License

private boolean containerInUse(ContainerStatus status) {
    return (status.getState() == ContainerState.NEW || status.getState() == ContainerState.RUNNING);
}