@InterfaceAudience.Public @InterfaceStability.Evolving public class ContainerTokenIdentifier extends org.apache.hadoop.security.token.TokenIdentifier
ContainerId
,
Resource
needed by the container and the target NMs host-address.Constructor and Description |
---|
ContainerTokenIdentifier()
Default constructor needed by RPC layer/SecretManager.
|
ContainerTokenIdentifier(ContainerId containerID,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime) |
ContainerTokenIdentifier(ContainerId containerID,
String hostName,
String appSubmitter,
Resource r,
long expiryTimeStamp,
int masterKeyId,
long rmIdentifier,
Priority priority,
long creationTime,
LogAggregationContext logAggregationContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getApplicationSubmitter() |
ContainerId |
getContainerID() |
long |
getCreationTime() |
long |
getExpiryTimeStamp() |
Text |
getKind()
Get the token kind
|
LogAggregationContext |
getLogAggregationContext() |
int |
getMasterKeyId() |
String |
getNmHostAddress() |
Priority |
getPriority() |
org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto |
getProto() |
Resource |
getResource() |
long |
getRMIdentifier()
Get the RMIdentifier of RM in which containers are allocated
|
org.apache.hadoop.security.UserGroupInformation |
getUser()
Get the Ugi with the username encoded in the token identifier
|
int |
hashCode() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public ContainerTokenIdentifier(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime)
public ContainerTokenIdentifier(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, LogAggregationContext logAggregationContext)
public ContainerTokenIdentifier()
public ContainerId getContainerID()
public String getApplicationSubmitter()
public String getNmHostAddress()
public Resource getResource()
public long getExpiryTimeStamp()
public int getMasterKeyId()
public Priority getPriority()
public long getCreationTime()
public long getRMIdentifier()
public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto getProto()
public LogAggregationContext getLogAggregationContext()
public void write(DataOutput out) throws IOException
Writable
out
.out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in
- DataInput
to deseriablize this object from.IOException
public Text getKind()
org.apache.hadoop.security.token.TokenIdentifier
getKind
in class org.apache.hadoop.security.token.TokenIdentifier
public org.apache.hadoop.security.UserGroupInformation getUser()
org.apache.hadoop.security.token.TokenIdentifier
getUser
in class org.apache.hadoop.security.token.TokenIdentifier
Copyright © 2018 Apache Software Foundation. All rights reserved.