Class ApplicationHomeSubCluster
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.ApplicationHomeSubCluster
- Direct Known Subclasses:
ApplicationHomeSubClusterPBImpl
ApplicationHomeSubCluster is a report of the runtime information of the application that is running in the federated cluster.
It includes information such as:
ApplicationIdSubClusterId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract org.apache.hadoop.yarn.api.records.ApplicationIdGet theApplicationIdrepresenting the unique identifier of the application.abstract org.apache.hadoop.yarn.api.records.ApplicationSubmissionContextGet Application Submission Context.abstract longGet the create time of the subcluster.abstract SubClusterIdGet theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ApplicationMaster of the application is running.inthashCode()static ApplicationHomeSubClusternewInstance(org.apache.hadoop.yarn.api.records.ApplicationId appId, long createTime, SubClusterId homeSubCluster) static ApplicationHomeSubClusternewInstance(org.apache.hadoop.yarn.api.records.ApplicationId appId, long createTime, SubClusterId homeSubCluster, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext) static ApplicationHomeSubClusternewInstance(org.apache.hadoop.yarn.api.records.ApplicationId appId, SubClusterId homeSubCluster) static ApplicationHomeSubClusternewInstance(org.apache.hadoop.yarn.api.records.ApplicationId appId, SubClusterId homeSubCluster, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext) abstract voidsetApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) Set theApplicationIdrepresenting the unique identifier of the application.abstract voidsetApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context) Set Application Submission Context.abstract voidsetCreateTime(long time) Set the create time of the subcluster.abstract voidsetHomeSubCluster(SubClusterId homeSubCluster) Set theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ApplicationMaster of the application is running.toString()
-
Constructor Details
-
ApplicationHomeSubCluster
public ApplicationHomeSubCluster()
-
-
Method Details
-
newInstance
@Private @Unstable public static ApplicationHomeSubCluster newInstance(org.apache.hadoop.yarn.api.records.ApplicationId appId, SubClusterId homeSubCluster) -
newInstance
@Private @Unstable public static ApplicationHomeSubCluster newInstance(org.apache.hadoop.yarn.api.records.ApplicationId appId, long createTime, SubClusterId homeSubCluster) -
newInstance
@Private @Unstable public static ApplicationHomeSubCluster newInstance(org.apache.hadoop.yarn.api.records.ApplicationId appId, long createTime, SubClusterId homeSubCluster, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext) -
newInstance
@Private @Unstable public static ApplicationHomeSubCluster newInstance(org.apache.hadoop.yarn.api.records.ApplicationId appId, SubClusterId homeSubCluster, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext) -
getApplicationId
@Public @Unstable public abstract org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()Get theApplicationIdrepresenting the unique identifier of the application.- Returns:
- the application identifier
-
setApplicationId
@Private @Unstable public abstract void setApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) Set theApplicationIdrepresenting the unique identifier of the application.- Parameters:
applicationId- the application identifier
-
getHomeSubCluster
Get theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ApplicationMaster of the application is running.- Returns:
- the home subcluster identifier
-
setHomeSubCluster
Set theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ApplicationMaster of the application is running.- Parameters:
homeSubCluster- the home subcluster identifier
-
getCreateTime
@Public @Unstable public abstract long getCreateTime()Get the create time of the subcluster.- Returns:
- the state of the subcluster
-
setCreateTime
@Private @Unstable public abstract void setCreateTime(long time) Set the create time of the subcluster.- Parameters:
time- the last heartbeat time of the subcluster
-
setApplicationSubmissionContext
@Private @Unstable public abstract void setApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context) Set Application Submission Context.- Parameters:
context- Application Submission Context.
-
getApplicationSubmissionContext
@Private @Unstable public abstract org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext getApplicationSubmissionContext()Get Application Submission Context.- Returns:
- Application Submission Context.
-
equals
-
hashCode
public int hashCode() -
toString
-