org.apache.hadoop.yarn.api.records.impl.pb
Class ApplicationIdPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ApplicationId
org.apache.hadoop.yarn.api.records.impl.pb.ApplicationIdPBImpl
- All Implemented Interfaces:
- Comparable<ApplicationId>
public class ApplicationIdPBImpl
- extends ApplicationId
ApplicationIdPBImpl
public ApplicationIdPBImpl()
ApplicationIdPBImpl
public ApplicationIdPBImpl(YarnProtos.ApplicationIdProto proto)
getProto
public YarnProtos.ApplicationIdProto getProto()
getId
public int getId()
- Description copied from class:
ApplicationId
- Get the short integer identifier of the
ApplicationId
which is unique for all applications started by a particular instance
of the ResourceManager.
- Specified by:
getId in class ApplicationId
- Returns:
- short integer identifier of the
ApplicationId
setId
public void setId(int id)
- Specified by:
setId in class ApplicationId
getClusterTimestamp
public long getClusterTimestamp()
- Description copied from class:
ApplicationId
- Get the start time of the
ResourceManager which is
used to generate globally unique ApplicationId.
- Specified by:
getClusterTimestamp in class ApplicationId
- Returns:
- start time of the
ResourceManager
setClusterTimestamp
public void setClusterTimestamp(long clusterTimestamp)
- Specified by:
setClusterTimestamp in class ApplicationId
Copyright © 2012 Apache Software Foundation. All Rights Reserved.