@InterfaceAudience.Public
@InterfaceStability.Evolving
public class NMTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier
| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.io.Text |
KIND |
| Constructor and Description |
|---|
NMTokenIdentifier()
Default constructor needed by RPC/Secret manager
|
NMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
String applicationSubmitter,
int masterKeyId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId() |
String |
getApplicationSubmitter() |
int |
getKeyId() |
org.apache.hadoop.io.Text |
getKind() |
org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto |
getProto() |
org.apache.hadoop.security.UserGroupInformation |
getUser() |
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public NMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
String applicationSubmitter,
int masterKeyId)
public NMTokenIdentifier()
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
public org.apache.hadoop.yarn.api.records.NodeId getNodeId()
public String getApplicationSubmitter()
public int getKeyId()
public void write(DataOutput out) throws IOException
IOExceptionpublic void readFields(DataInput in) throws IOException
IOExceptionpublic org.apache.hadoop.io.Text getKind()
getKind in class org.apache.hadoop.security.token.TokenIdentifierpublic org.apache.hadoop.security.UserGroupInformation getUser()
getUser in class org.apache.hadoop.security.token.TokenIdentifierpublic org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto getProto()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.