Package org.apache.hadoop.yarn.server.nodemanager.webapp.dao

Examples of org.apache.hadoop.yarn.server.nodemanager.webapp.dao.ContainerInfo


      if (container == null) {
        div.h1("Unknown Container. Container might have completed, "
                + "please go back to the previous page and retry.")._();
        return;
      }
      ContainerInfo info = new ContainerInfo(this.nmContext, container);

      info("Container information")
        ._("ContainerID", info.getId())
        ._("ContainerState", info.getState())
        ._("ExitStatus", info.getExitStatus())
        ._("Diagnostics", info.getDiagnostics())
        ._("User", info.getUser())
        ._("TotalMemoryNeeded", info.getMemoryNeeded())
        ._("TotalVCoresNeeded", info.getVCoresNeeded())
        ._("logs", info.getShortLogLink(), "Link to logs");
      html._(InfoBlock.class);
    }
View Full Code Here


        .entrySet()) {
      if (entry.getValue() == null) {
        // just skip it
        continue;
      }
      ContainerInfo info = new ContainerInfo(this.nmContext, entry.getValue(),
          uriInfo.getBaseUri().toString(), webapp.name());
      allContainers.add(info);
    }
    return allContainers;
  }
View Full Code Here

    Container container = nmContext.getContainers().get(containerId);
    if (container == null) {
      throw new NotFoundException("container with id, " + id + ", not found");
    }
    return new ContainerInfo(this.nmContext, container, uriInfo.getBaseUri()
        .toString(), webapp.name());

  }
View Full Code Here

      if (container == null) {
        div.h1("Unknown Container. Container might have completed, "
                + "please go back to the previous page and retry.")._();
        return;
      }
      ContainerInfo info = new ContainerInfo(this.nmContext, container);

      info("Container information")
        ._("ContainerID", info.getId())
        ._("ContainerState", info.getState())
        ._("ExitStatus", info.getExitStatus())
        ._("Diagnostics", info.getDiagnostics())
        ._("User", info.getUser())
        ._("TotalMemoryNeeded", info.getMemoryNeeded())
        ._("logs", info.getShortLogLink(), "Link to logs");
      html._(InfoBlock.class);
    }
View Full Code Here

        .entrySet()) {
      if (entry.getValue() == null) {
        // just skip it
        continue;
      }
      ContainerInfo info = new ContainerInfo(this.nmContext, entry.getValue(),
          uriInfo.getBaseUri().toString(), webapp.name());
      allContainers.add(info);
    }
    return allContainers;
  }
View Full Code Here

    Container container = nmContext.getContainers().get(containerId);
    if (container == null) {
      throw new NotFoundException("container with id, " + id + ", not found");
    }
    return new ContainerInfo(this.nmContext, container, uriInfo.getBaseUri()
        .toString(), webapp.name());

  }
View Full Code Here

        .entrySet()) {
      if (entry.getValue() == null) {
        // just skip it
        continue;
      }
      ContainerInfo info = new ContainerInfo(this.nmContext, entry.getValue(),
          uriInfo.getBaseUri().toString(), webapp.name());
      allContainers.add(info);
    }
    return allContainers;
  }
View Full Code Here

    Container container = nmContext.getContainers().get(containerId);
    if (container == null) {
      throw new NotFoundException("container with id, " + id + ", not found");
    }
    return new ContainerInfo(this.nmContext, container, uriInfo.getBaseUri()
        .toString(), webapp.name());

  }
View Full Code Here

              .td()._("logs")._()
            ._()
          ._().tbody();
      for (Entry<ContainerId, Container> entry : this.nmContext
          .getContainers().entrySet()) {
        ContainerInfo info = new ContainerInfo(this.nmContext, entry.getValue());
        tableBody
          .tr()
            .td().a(url("container", info.getId()), info.getId())
            ._()
            .td()._(info.getState())._()
            .td()
                .a(url(info.getShortLogLink()), "logs")._()
          ._();
      }
      tableBody._()._()._();
    }
View Full Code Here

      if (container == null) {
        div.h1("Unknown Container. Container might have completed, "
                + "please go back to the previous page and retry.")._();
        return;
      }
      ContainerInfo info = new ContainerInfo(this.nmContext, container);

      info("Container information")
        ._("ContainerID", info.getId())
        ._("ContainerState", info.getState())
        ._("ExitStatus", info.getExitStatus())
        ._("Diagnostics", info.getDiagnostics())
        ._("User", info.getUser())
        ._("TotalMemoryNeeded", info.getMemoryNeeded())
        ._("logs", info.getShortLogLink(), "Link to logs");
      html._(InfoBlock.class);
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.server.nodemanager.webapp.dao.ContainerInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.