org.apache.hadoop.yarn.api.records.impl.pb
Class ContainerIdPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ContainerId
org.apache.hadoop.yarn.api.records.impl.pb.ContainerIdPBImpl
- All Implemented Interfaces:
- Comparable<ContainerId>
public class ContainerIdPBImpl
- extends ContainerId
ContainerIdPBImpl
public ContainerIdPBImpl()
ContainerIdPBImpl
public ContainerIdPBImpl(YarnProtos.ContainerIdProto proto)
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.