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

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.DelegationTokenProto>
      extended by org.apache.hadoop.yarn.api.records.impl.pb.DelegationTokenPBImpl
All Implemented Interfaces:
DelegationToken

public class DelegationTokenPBImpl
extends ProtoBase<YarnProtos.DelegationTokenProto>
implements DelegationToken


Constructor Summary
DelegationTokenPBImpl()
           
DelegationTokenPBImpl(YarnProtos.DelegationTokenProto proto)
           
 
Method Summary
 ByteBuffer getIdentifier()
          Get the token identifier.
 String getKind()
          Get the token kind.
 ByteBuffer getPassword()
          Get the token password
 YarnProtos.DelegationTokenProto 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

DelegationTokenPBImpl

public DelegationTokenPBImpl()

DelegationTokenPBImpl

public DelegationTokenPBImpl(YarnProtos.DelegationTokenProto proto)
Method Detail

getProto

public YarnProtos.DelegationTokenProto getProto()
Specified by:
getProto in class ProtoBase<YarnProtos.DelegationTokenProto>

getIdentifier

public ByteBuffer getIdentifier()
Description copied from interface: DelegationToken
Get the token identifier.

Specified by:
getIdentifier in interface DelegationToken
Returns:
token identifier

setIdentifier

public void setIdentifier(ByteBuffer identifier)
Specified by:
setIdentifier in interface DelegationToken

getPassword

public ByteBuffer getPassword()
Description copied from interface: DelegationToken
Get the token password

Specified by:
getPassword in interface DelegationToken
Returns:
token password

setPassword

public void setPassword(ByteBuffer password)
Specified by:
setPassword in interface DelegationToken

getKind

public String getKind()
Description copied from interface: DelegationToken
Get the token kind.

Specified by:
getKind in interface DelegationToken
Returns:
token kind

setKind

public void setKind(String kind)
Specified by:
setKind in interface DelegationToken

getService

public String getService()
Description copied from interface: DelegationToken
Get the service to which the token is allocated.

Specified by:
getService in interface DelegationToken
Returns:
service to which the token is allocated

setService

public void setService(String service)
Specified by:
setService in interface DelegationToken


Copyright © 2012 Apache Software Foundation. All Rights Reserved.