Package org.springframework.yarn.support.console

Examples of org.springframework.yarn.support.console.TableHeader


   * @param applications the applications
   * @return the application report table
   */
  private static Table getApplicationReportTable(List<ApplicationReport> applications) {
    Table table = new Table();
    table.addHeader(1, new TableHeader("Id"))
        .addHeader(2, new TableHeader("User"))
        .addHeader(3, new TableHeader("Name"))
        .addHeader(4, new TableHeader("Queue"))
        .addHeader(5, new TableHeader("StartTime"))
        .addHeader(6, new TableHeader("FinishTime"))
        .addHeader(7, new TableHeader("State"))
        .addHeader(8, new TableHeader("FinalStatus"));

    for (ApplicationReport a : applications) {
      final TableRow row = new TableRow();
      row.addValue(1, a.getApplicationId().toString())
          .addValue(2, a.getUser())
View Full Code Here

TOP

Related Classes of org.springframework.yarn.support.console.TableHeader

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.