@Internal public class DefaultDelegationTokenManager extends Object implements DelegationTokenManager
When delegation token renewal is enabled, this manager will make sure long-running apps can run without interruption while accessing secured services. It periodically contacts all the configured secure services to obtain delegation tokens to be distributed to the rest of the application.
DelegationTokenManager.Listener| Constructor and Description |
|---|
DefaultDelegationTokenManager(org.apache.flink.configuration.Configuration configuration,
org.apache.flink.core.plugin.PluginManager pluginManager,
org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor,
ExecutorService ioExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
obtainDelegationTokens()
Obtains new tokens in a one-time fashion and automatically distributes them to all local JVM
receivers.
|
void |
obtainDelegationTokens(DelegationTokenContainer container)
Obtains new tokens in a one-time fashion and leaves it up to the caller to distribute them.
|
protected Optional<Long> |
obtainDelegationTokensAndGetNextRenewal(DelegationTokenContainer container) |
void |
start(DelegationTokenManager.Listener listener)
Creates a re-occurring task which obtains new tokens and automatically distributes them to
task managers.
|
void |
stop()
Stops re-occurring token obtain task.
|
public DefaultDelegationTokenManager(org.apache.flink.configuration.Configuration configuration,
@Nullable
org.apache.flink.core.plugin.PluginManager pluginManager,
@Nullable
org.apache.flink.util.concurrent.ScheduledExecutor scheduledExecutor,
@Nullable
ExecutorService ioExecutor)
public void obtainDelegationTokens(DelegationTokenContainer container) throws Exception
obtainDelegationTokens in interface DelegationTokenManagerExceptionpublic void obtainDelegationTokens()
throws Exception
DelegationTokenManagerobtainDelegationTokens in interface DelegationTokenManagerExceptionprotected Optional<Long> obtainDelegationTokensAndGetNextRenewal(DelegationTokenContainer container)
public void start(DelegationTokenManager.Listener listener) throws Exception
start in interface DelegationTokenManagerExceptionpublic void stop()
stop in interface DelegationTokenManagerCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.