public static class Token.TrivialRenewer extends TokenRenewer
构造器和说明 |
---|
Token.TrivialRenewer() |
限定符和类型 | 方法和说明 |
---|---|
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?
|
long |
renew(Token<?> token,
Configuration conf)
Renew the given token.
|
protected Text getKind()
public boolean handleKind(Text kind)
TokenRenewer
handleKind
在类中 TokenRenewer
kind
- the kind of the tokenpublic boolean isManaged(Token<?> token)
TokenRenewer
isManaged
在类中 TokenRenewer
token
- the token being checkedpublic long renew(Token<?> token, Configuration conf)
TokenRenewer
renew
在类中 TokenRenewer
public void cancel(Token<?> token, Configuration conf) throws IOException, InterruptedException
TokenRenewer
cancel
在类中 TokenRenewer
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation