Class ApplicationHomeSubClusterPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.ApplicationHomeSubCluster
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.ApplicationHomeSubClusterPBImpl
Protocol buffer based implementation of
ApplicationHomeSubCluster.-
Constructor Summary
ConstructorsConstructorDescriptionApplicationHomeSubClusterPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.ApplicationHomeSubClusterProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.hadoop.yarn.api.records.ApplicationIdGet theApplicationIdrepresenting the unique identifier of the application.org.apache.hadoop.yarn.api.records.ApplicationSubmissionContextGet Application Submission Context.longGet the create time of the subcluster.Get theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ApplicationMaster of the application is running.org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.ApplicationHomeSubClusterProtogetProto()inthashCode()voidsetApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) Set theApplicationIdrepresenting the unique identifier of the application.voidsetApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context) Set Application Submission Context.voidsetCreateTime(long time) Set the create time of the subcluster.voidsetHomeSubCluster(SubClusterId paramHomeSubCluster) Set theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ApplicationMaster of the application is running.toString()Methods inherited from class org.apache.hadoop.yarn.server.federation.store.records.ApplicationHomeSubCluster
newInstance, newInstance, newInstance, newInstance
-
Constructor Details
-
ApplicationHomeSubClusterPBImpl
public ApplicationHomeSubClusterPBImpl() -
ApplicationHomeSubClusterPBImpl
public ApplicationHomeSubClusterPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.ApplicationHomeSubClusterProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.ApplicationHomeSubClusterProto getProto() -
hashCode
public int hashCode()- Overrides:
hashCodein classApplicationHomeSubCluster
-
equals
- Overrides:
equalsin classApplicationHomeSubCluster
-
toString
- Overrides:
toStringin classApplicationHomeSubCluster
-
getApplicationId
public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()Description copied from class:ApplicationHomeSubClusterGet theApplicationIdrepresenting the unique identifier of the application.- Specified by:
getApplicationIdin classApplicationHomeSubCluster- Returns:
- the application identifier
-
setApplicationId
public void setApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) Description copied from class:ApplicationHomeSubClusterSet theApplicationIdrepresenting the unique identifier of the application.- Specified by:
setApplicationIdin classApplicationHomeSubCluster- Parameters:
applicationId- the application identifier
-
getHomeSubCluster
Description copied from class:ApplicationHomeSubClusterGet theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ApplicationMaster of the application is running.- Specified by:
getHomeSubClusterin classApplicationHomeSubCluster- Returns:
- the home subcluster identifier
-
setHomeSubCluster
Description copied from class:ApplicationHomeSubClusterSet theSubClusterIdrepresenting the unique identifier of the home subcluster in which the ApplicationMaster of the application is running.- Specified by:
setHomeSubClusterin classApplicationHomeSubCluster- Parameters:
paramHomeSubCluster- the home subcluster identifier
-
getCreateTime
public long getCreateTime()Description copied from class:ApplicationHomeSubClusterGet the create time of the subcluster.- Specified by:
getCreateTimein classApplicationHomeSubCluster- Returns:
- the state of the subcluster
-
setCreateTime
public void setCreateTime(long time) Description copied from class:ApplicationHomeSubClusterSet the create time of the subcluster.- Specified by:
setCreateTimein classApplicationHomeSubCluster- Parameters:
time- the last heartbeat time of the subcluster
-
setApplicationSubmissionContext
public void setApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context) Description copied from class:ApplicationHomeSubClusterSet Application Submission Context.- Specified by:
setApplicationSubmissionContextin classApplicationHomeSubCluster- Parameters:
context- Application Submission Context.
-
getApplicationSubmissionContext
public org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext getApplicationSubmissionContext()Description copied from class:ApplicationHomeSubClusterGet Application Submission Context.- Specified by:
getApplicationSubmissionContextin classApplicationHomeSubCluster- Returns:
- Application Submission Context.
-