public static class RMDelegationTokenIdentifier.Renewer extends TokenRenewer
| Constructor and Description |
|---|
RMDelegationTokenIdentifier.Renewer() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(Token<?> token,
Configuration conf)
Cancel the given token
|
boolean |
handleKind(Text kind)
Does this renewer handle this kind of token?
|
boolean |
isManaged(Token<?> token)
Is the given token managed? Only managed tokens may be renewed or
cancelled.
|
long |
renew(Token<?> token,
Configuration conf)
Renew the given token.
|
static void |
setSecretManager(AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager,
InetSocketAddress serviceAddress) |
public boolean handleKind(Text kind)
TokenRenewerhandleKind in class TokenRenewerkind - the kind of the tokenpublic boolean isManaged(Token<?> token) throws IOException
TokenRenewerisManaged in class TokenRenewertoken - the token being checkedIOException@InterfaceAudience.Private public static void setSecretManager(AbstractDelegationTokenSecretManager<RMDelegationTokenIdentifier> secretManager, InetSocketAddress serviceAddress)
public long renew(Token<?> token, Configuration conf) throws IOException, InterruptedException
TokenRenewerrenew in class TokenRenewerIOExceptionInterruptedExceptionpublic void cancel(Token<?> token, Configuration conf) throws IOException, InterruptedException
TokenRenewercancel in class TokenRenewerIOExceptionInterruptedExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.