|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.security.token.TokenIdentifier org.apache.hadoop.yarn.security.NMTokenIdentifier
@InterfaceAudience.Public @InterfaceStability.Evolving public class NMTokenIdentifier
Field Summary | |
---|---|
static Text |
KIND
|
Constructor Summary | |
---|---|
NMTokenIdentifier()
Default constructor needed by RPC/Secret manager |
|
NMTokenIdentifier(ApplicationAttemptId appAttemptId,
NodeId nodeId,
String applicationSubmitter,
int masterKeyId)
|
Method Summary | |
---|---|
ApplicationAttemptId |
getApplicationAttemptId()
|
String |
getApplicationSubmitter()
|
int |
getKeyId()
|
Text |
getKind()
Get the token kind |
NodeId |
getNodeId()
|
org.apache.hadoop.security.UserGroupInformation |
getUser()
Get the Ugi with the username encoded in the token identifier |
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
void |
write(DataOutput out)
Serialize the fields of this object to out . |
Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier |
---|
getBytes, getTrackingId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Text KIND
Constructor Detail |
---|
public NMTokenIdentifier(ApplicationAttemptId appAttemptId, NodeId nodeId, String applicationSubmitter, int masterKeyId)
public NMTokenIdentifier()
Method Detail |
---|
public ApplicationAttemptId getApplicationAttemptId()
public NodeId getNodeId()
public String getApplicationSubmitter()
public int getKeyId()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |