org.apache.hadoop.yarn.security
Class ContainerTokenIdentifier
java.lang.Object
org.apache.hadoop.security.token.TokenIdentifier
org.apache.hadoop.yarn.security.ContainerTokenIdentifier
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class ContainerTokenIdentifier
- extends org.apache.hadoop.security.token.TokenIdentifier
|
Field Summary |
static org.apache.hadoop.io.Text |
KIND
|
| 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 |
KIND
public static final org.apache.hadoop.io.Text KIND
ContainerTokenIdentifier
public ContainerTokenIdentifier(org.apache.hadoop.yarn.api.records.ContainerId containerID,
String hostName,
org.apache.hadoop.yarn.api.records.Resource r)
ContainerTokenIdentifier
public ContainerTokenIdentifier()
getContainerID
public org.apache.hadoop.yarn.api.records.ContainerId getContainerID()
getNmHostAddress
public String getNmHostAddress()
getResource
public org.apache.hadoop.yarn.api.records.Resource getResource()
write
public void write(DataOutput out)
throws IOException
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Throws:
IOException
getKind
public org.apache.hadoop.io.Text getKind()
- Specified by:
getKind in class org.apache.hadoop.security.token.TokenIdentifier
getUser
public org.apache.hadoop.security.UserGroupInformation getUser()
- Specified by:
getUser in class org.apache.hadoop.security.token.TokenIdentifier
Copyright © 2012 Apache Software Foundation. All Rights Reserved.