Spring for Apache Hadoop

org.springframework.yarn.support.console
Class ApplicationsReport.SubmittedReportBuilder

java.lang.Object
  extended by org.springframework.yarn.support.console.ApplicationsReport.SubmittedReportBuilder
Enclosing class:
ApplicationsReport

public static class ApplicationsReport.SubmittedReportBuilder
extends java.lang.Object

Builder for submitted applications.


Method Summary
 ApplicationsReport.SubmittedReportBuilder add(ApplicationsReport.SubmittedField... f)
          Adds a new fields into a report.
 ApplicationsReport.SubmittedReportBuilder add(ApplicationsReport.SubmittedField f)
          Adds a new field into a report.
 ApplicationsReport build()
          Builds an applications report.
 ApplicationsReport.SubmittedReportBuilder from(java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> reports)
          Add a source this report will be build from.
 ApplicationsReport.SubmittedReportBuilder header(java.lang.String from, java.lang.String to)
           
 ApplicationsReport.SubmittedReportBuilder sort(ApplicationsReport.SubmittedField f)
          Sort the report by a field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public ApplicationsReport.SubmittedReportBuilder add(ApplicationsReport.SubmittedField f)
Adds a new field into a report.

Parameters:
f - the field
Returns:
the builder for chaining

add

public ApplicationsReport.SubmittedReportBuilder add(ApplicationsReport.SubmittedField... f)
Adds a new fields into a report.

Parameters:
f - the field
Returns:
the builder for chaining

sort

public ApplicationsReport.SubmittedReportBuilder sort(ApplicationsReport.SubmittedField f)
Sort the report by a field.

Parameters:
f - the f
Returns:
the builder for chaining

from

public ApplicationsReport.SubmittedReportBuilder from(java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> reports)
Add a source this report will be build from.

Parameters:
reports - the reports
Returns:
the builder for chaining

header

public ApplicationsReport.SubmittedReportBuilder header(java.lang.String from,
                                                        java.lang.String to)

build

public ApplicationsReport build()
Builds an applications report.

Returns:
the applications report

Spring for Apache Hadoop