org.springframework.yarn.test.junit
Class ApplicationInfo

java.lang.Object
  extended by org.springframework.yarn.test.junit.ApplicationInfo

public class ApplicationInfo
extends Object

Simple holder class needed for returning multiple values from AbstractYarnClusterTests app submit operations.

Author:
Janne Valkealahti

Constructor Summary
ApplicationInfo()
          Instantiates a new application info.
ApplicationInfo(ApplicationId applicationId, ApplicationReport applicationReport)
          Instantiates a new application info.
 
Method Summary
 ApplicationId getApplicationId()
          Gets the application id.
 ApplicationReport getApplicationReport()
          Gets the application report.
 FinalApplicationStatus getFinalApplicationStatus()
          Gets the final application status.
 YarnApplicationState getYarnApplicationState()
          Gets the yarn application state.
 void setApplicationId(ApplicationId applicationId)
          Sets the application id.
 void setApplicationReport(ApplicationReport applicationReport)
          Sets the application report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationInfo

public ApplicationInfo()
Instantiates a new application info.


ApplicationInfo

public ApplicationInfo(ApplicationId applicationId,
                       ApplicationReport applicationReport)
Instantiates a new application info.

Parameters:
applicationId - the application id
applicationReport - the application report
Method Detail

getYarnApplicationState

public YarnApplicationState getYarnApplicationState()
Gets the yarn application state.

Returns:
the yarn application state

getFinalApplicationStatus

public FinalApplicationStatus getFinalApplicationStatus()
Gets the final application status.

Returns:
the final application status

getApplicationId

public ApplicationId getApplicationId()
Gets the application id.

Returns:
the application id

setApplicationId

public void setApplicationId(ApplicationId applicationId)
Sets the application id.

Parameters:
applicationId - the new application id

getApplicationReport

public ApplicationReport getApplicationReport()
Gets the application report.

Returns:
the application report

setApplicationReport

public void setApplicationReport(ApplicationReport applicationReport)
Sets the application report.

Parameters:
applicationReport - the new application report