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

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

public class ContainerIdPBImpl
extends ContainerId


Constructor Summary
ContainerIdPBImpl()
           
ContainerIdPBImpl(YarnProtos.ContainerIdProto proto)
           
 
Method Summary
 ApplicationAttemptId getApplicationAttemptId()
          Get the ApplicationAttemptId of the application to which the Container was assigned.
 int getId()
          Get the identifier of the ContainerId.
 YarnProtos.ContainerIdProto getProto()
           
 void setApplicationAttemptId(ApplicationAttemptId atId)
           
 void setId(int id)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ContainerId
compareTo, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerIdPBImpl

public ContainerIdPBImpl()

ContainerIdPBImpl

public ContainerIdPBImpl(YarnProtos.ContainerIdProto proto)
Method Detail

getProto

public YarnProtos.ContainerIdProto getProto()

getId

public int getId()
Description copied from class: ContainerId
Get the identifier of the ContainerId.

Specified by:
getId in class ContainerId
Returns:
identifier of the ContainerId

setId

public void setId(int id)
Specified by:
setId in class ContainerId

getApplicationAttemptId

public ApplicationAttemptId getApplicationAttemptId()
Description copied from class: ContainerId
Get the ApplicationAttemptId of the application to which the Container was assigned.

Specified by:
getApplicationAttemptId in class ContainerId
Returns:
ApplicationAttemptId of the application to which the Container was assigned

setApplicationAttemptId

public void setApplicationAttemptId(ApplicationAttemptId atId)
Specified by:
setApplicationAttemptId in class ContainerId


Copyright © 2012 Apache Software Foundation. All Rights Reserved.