org.apache.hadoop.yarn.api.records.impl.pb
Class TokenPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.Token
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)
|
| Methods inherited from class org.apache.hadoop.yarn.api.records.Token |
newInstance |
TokenPBImpl
public TokenPBImpl()
TokenPBImpl
public TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto)
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.