@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.| Modifier and Type | Class and Description |
|---|---|
static class |
ContainerTokenIdentifier.Renewer |
| 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() |
LogAggregationContext |
getLogAggregationContext() |
int |
getMasterKeyId() |
String |
getNmHostAddress() |
Priority |
getPriority() |
YarnSecurityTokenProtos.ContainerTokenIdentifierProto |
getProto() |
Resource |
getResource() |
long |
getRMIdentifier()
Get the RMIdentifier of RM in which containers are allocated
|
UserGroupInformation |
getUser() |
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
getBytes, getTrackingIdpublic static final Text KIND
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 YarnSecurityTokenProtos.ContainerTokenIdentifierProto getProto()
public LogAggregationContext getLogAggregationContext()
public void write(DataOutput out) throws IOException
IOExceptionpublic void readFields(DataInput in) throws IOException
IOExceptionpublic Text getKind()
getKind in class org.apache.hadoop.security.token.TokenIdentifierpublic UserGroupInformation getUser()
getUser in class org.apache.hadoop.security.token.TokenIdentifierCopyright © 2018 CERN. All Rights Reserved.