@InterfaceAudience.Private public class MRDelegationTokenRenewer extends TokenRenewer
| Constructor and Description |
|---|
MRDelegationTokenRenewer() |
| 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?
|
protected MRClientProtocol |
instantiateHistoryProxy(Configuration conf,
InetSocketAddress hsAddress) |
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 void |
stopHistoryProxy(MRClientProtocol proxy) |
public boolean handleKind(Text kind)
TokenRenewerhandleKind in class TokenRenewerkind - the kind of the tokenpublic 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 TokenRenewerIOExceptionInterruptedExceptionpublic boolean isManaged(Token<?> token) throws IOException
TokenRenewerisManaged in class TokenRenewertoken - the token being checkedIOExceptionprotected void stopHistoryProxy(MRClientProtocol proxy)
protected MRClientProtocol instantiateHistoryProxy(Configuration conf, InetSocketAddress hsAddress) throws IOException
IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.