|
||||||||||
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.mapreduce.security.token.JobTokenIdentifier
public class JobTokenIdentifier
The token identifier for job token
Nested Class Summary | |
---|---|
static class |
JobTokenIdentifier.Renewer
|
Field Summary | |
---|---|
static Text |
KIND_NAME
|
Constructor Summary | |
---|---|
JobTokenIdentifier()
Default constructor |
|
JobTokenIdentifier(Text jobid)
Create a job token identifier from a jobid |
Method Summary | |
---|---|
Text |
getJobId()
Get the jobid |
Text |
getKind()
Get the token kind |
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 |
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_NAME
Constructor Detail |
---|
public JobTokenIdentifier()
public JobTokenIdentifier(Text jobid)
jobid
- the jobid to useMethod Detail |
---|
public Text getKind()
getKind
in class TokenIdentifier
public UserGroupInformation getUser()
getUser
in class TokenIdentifier
public Text getJobId()
public void readFields(DataInput in) throws IOException
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 void write(DataOutput out) throws IOException
out
.
out
- DataOuput
to serialize this object into.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |