@InterfaceAudience.Public @InterfaceStability.Evolving public static class Token.TrivialRenewer extends TokenRenewer
Constructor and Description |
---|
TrivialRenewer() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(Token<?> token,
Configuration conf)
Cancel the given token.
|
protected Text |
getKind() |
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.
|
protected Text getKind()
public boolean handleKind(Text kind)
TokenRenewer
handleKind
in class TokenRenewer
kind
- the kind of the tokenpublic boolean isManaged(Token<?> token)
TokenRenewer
isManaged
in class TokenRenewer
token
- the token being checkedpublic long renew(Token<?> token, Configuration conf)
TokenRenewer
renew
in class TokenRenewer
token
- the token being checked.conf
- configuration.public void cancel(Token<?> token, Configuration conf) throws IOException, InterruptedException
TokenRenewer
cancel
in class TokenRenewer
token
- the token being checked.conf
- configuration.IOException
- raised on errors performing I/O.InterruptedException
- thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted,
either before or during the activity.Copyright © 2023 Apache Software Foundation. All rights reserved.