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

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.ContainerTokenProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.ContainerTokenPBImpl
All Implemented Interfaces:
ContainerToken

public class ContainerTokenPBImpl
extends ProtoBase<YarnProtos.ContainerTokenProto>
implements ContainerToken


Constructor Summary
ContainerTokenPBImpl()
           
ContainerTokenPBImpl(YarnProtos.ContainerTokenProto proto)
           
 
Method Summary
 ByteBuffer getIdentifier()
          Get the token identifier.
 String getKind()
          Get the token kind.
 ByteBuffer getPassword()
          Get the token password
 YarnProtos.ContainerTokenProto getProto()
           
 String getService()
          Get the service to which the token is allocated.
 void setIdentifier(ByteBuffer identifier)
           
 void setKind(String kind)
           
 void setPassword(ByteBuffer password)
           
 void setService(String service)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerTokenPBImpl

public ContainerTokenPBImpl()

ContainerTokenPBImpl

public ContainerTokenPBImpl(YarnProtos.ContainerTokenProto proto)
Method Detail

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.