org.apache.hadoop.yarn.api.records.impl.pb
Class ContainerTokenPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.ContainerTokenProto>
org.apache.hadoop.yarn.api.records.impl.pb.ContainerTokenPBImpl
- All Implemented Interfaces:
- ContainerToken
public class ContainerTokenPBImpl
- extends ProtoBase<YarnProtos.ContainerTokenProto>
- implements ContainerToken
ContainerTokenPBImpl
public ContainerTokenPBImpl()
ContainerTokenPBImpl
public ContainerTokenPBImpl(YarnProtos.ContainerTokenProto proto)
getProto
public YarnProtos.ContainerTokenProto getProto()
- Specified by:
getProto in class ProtoBase<YarnProtos.ContainerTokenProto>
getIdentifier
public ByteBuffer getIdentifier()
- Description copied from interface:
ContainerToken
- Get the token identifier.
- Specified by:
getIdentifier in interface ContainerToken
- Returns:
- token identifier
setIdentifier
public void setIdentifier(ByteBuffer identifier)
- Specified by:
setIdentifier in interface ContainerToken
getPassword
public ByteBuffer getPassword()
- Description copied from interface:
ContainerToken
- Get the token password
- Specified by:
getPassword in interface ContainerToken
- Returns:
- token password
setPassword
public void setPassword(ByteBuffer password)
- Specified by:
setPassword in interface ContainerToken
getKind
public String getKind()
- Description copied from interface:
ContainerToken
- Get the token kind.
- Specified by:
getKind in interface ContainerToken
- Returns:
- token kind
setKind
public void setKind(String kind)
- Specified by:
setKind in interface ContainerToken
getService
public String getService()
- Description copied from interface:
ContainerToken
- Get the service to which the token is allocated.
- Specified by:
getService in interface ContainerToken
- Returns:
- service to which the token is allocated
setService
public void setService(String service)
- Specified by:
setService in interface ContainerToken
Copyright © 2012 Apache Software Foundation. All Rights Reserved.