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

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.Token
      extended by org.apache.hadoop.yarn.api.records.impl.pb.TokenPBImpl

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class TokenPBImpl
extends org.apache.hadoop.yarn.api.records.Token


Constructor Summary
TokenPBImpl()
           
TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto)
           
 
Method Summary
protected  ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)
           
protected  com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
           
 boolean equals(Object other)
           
 ByteBuffer getIdentifier()
           
 String getKind()
           
 ByteBuffer getPassword()
           
 org.apache.hadoop.security.proto.SecurityProtos.TokenProto getProto()
           
 String getService()
           
 int hashCode()
           
 void setIdentifier(ByteBuffer identifier)
           
 void setKind(String kind)
           
 void setPassword(ByteBuffer password)
           
 void setService(String service)
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.Token
newInstance
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenPBImpl

public TokenPBImpl()

TokenPBImpl

public TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto)
Method Detail

getProto

public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getProto()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

convertFromProtoFormat

protected final ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)

convertToProtoFormat

protected final com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)

getIdentifier

public ByteBuffer getIdentifier()
Specified by:
getIdentifier in class org.apache.hadoop.yarn.api.records.Token

setIdentifier

public void setIdentifier(ByteBuffer identifier)
Specified by:
setIdentifier in class org.apache.hadoop.yarn.api.records.Token

getPassword

public ByteBuffer getPassword()
Specified by:
getPassword in class org.apache.hadoop.yarn.api.records.Token

setPassword

public void setPassword(ByteBuffer password)
Specified by:
setPassword in class org.apache.hadoop.yarn.api.records.Token

getKind

public String getKind()
Specified by:
getKind in class org.apache.hadoop.yarn.api.records.Token

setKind

public void setKind(String kind)
Specified by:
setKind in class org.apache.hadoop.yarn.api.records.Token

getService

public String getService()
Specified by:
getService in class org.apache.hadoop.yarn.api.records.Token

setService

public void setService(String service)
Specified by:
setService in class org.apache.hadoop.yarn.api.records.Token

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All Rights Reserved.