org.apache.hadoop.yarn.api.records.impl.pb
Class ApplicationIdPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ApplicationId
      extended by org.apache.hadoop.yarn.api.records.impl.pb.ApplicationIdPBImpl
All Implemented Interfaces:
Comparable<ApplicationId>

public class ApplicationIdPBImpl
extends ApplicationId


Constructor Summary
ApplicationIdPBImpl()
           
ApplicationIdPBImpl(YarnProtos.ApplicationIdProto proto)
           
 
Method Summary
 long getClusterTimestamp()
          Get the start time of the ResourceManager which is used to generate globally unique ApplicationId.
 int getId()
          Get the short integer identifier of the ApplicationId which is unique for all applications started by a particular instance of the ResourceManager.
 YarnProtos.ApplicationIdProto getProto()
           
 void setClusterTimestamp(long clusterTimestamp)
           
 void setId(int id)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ApplicationId
compareTo, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationIdPBImpl

public ApplicationIdPBImpl()

ApplicationIdPBImpl

public ApplicationIdPBImpl(YarnProtos.ApplicationIdProto proto)
Method Detail

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.