@InterfaceAudience.Public @InterfaceStability.Evolving public class ContainerTokenIdentifier extends 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) |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationSubmitter() |
ContainerId |
getContainerID() |
long |
getExpiryTimeStamp() |
Text |
getKind()
Get the token kind
|
int |
getMasterKeyId() |
String |
getNmHostAddress() |
Resource |
getResource() |
long |
getRMIdentifer()
Get the RMIdentifier of RM in which containers are allocated
|
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 . |
getBytes, getTrackingId
public static final Text KIND
public ContainerTokenIdentifier(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier)
public ContainerTokenIdentifier()
public ContainerId getContainerID()
public String getApplicationSubmitter()
public String getNmHostAddress()
public Resource getResource()
public long getExpiryTimeStamp()
public int getMasterKeyId()
public long getRMIdentifer()
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()
TokenIdentifier
getKind
in class TokenIdentifier
public UserGroupInformation getUser()
TokenIdentifier
getUser
in class TokenIdentifier
Copyright © 2013 Apache Software Foundation. All rights reserved.