java.lang.Runnable@Private
public class DelegationTokenRenewer
extends java.lang.Thread
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
DelegationTokenRenewer.Renewable |
The renewable interface used by the renewer.
|
static class |
DelegationTokenRenewer.RenewAction<T extends FileSystem & DelegationTokenRenewer.Renewable> |
An action that will renew and replace the file system's delegation
tokens automatically.
|
| Modifier and Type | Field | Description |
|---|---|---|
static long |
renewCycle |
| Modifier and Type | Method | Description |
|---|---|---|
<T extends FileSystem & DelegationTokenRenewer.Renewable> |
addRenewAction(T fs) |
Add a renew action to the queue.
|
static DelegationTokenRenewer |
getInstance() |
|
protected int |
getRenewQueueLength() |
For testing purposes.
|
<T extends FileSystem & DelegationTokenRenewer.Renewable> |
removeRenewAction(T fs) |
Remove the associated renew action from the queue
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield@VisibleForTesting protected int getRenewQueueLength()
public static DelegationTokenRenewer getInstance()
public <T extends FileSystem & DelegationTokenRenewer.Renewable> DelegationTokenRenewer.RenewAction<T> addRenewAction(T fs)
T - generic type T.fs - file system.public <T extends FileSystem & DelegationTokenRenewer.Renewable> void removeRenewAction(T fs) throws java.io.IOException
T - generic type T.fs - file system.java.io.IOException - raised on errors performing I/O.public void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadCopyright © 2008–2025 Apache Software Foundation. All rights reserved.