Class NoOpDelegationTokenManager
- java.lang.Object
-
- org.apache.flink.runtime.security.token.NoOpDelegationTokenManager
-
- All Implemented Interfaces:
DelegationTokenManager
@Internal public class NoOpDelegationTokenManager extends Object implements DelegationTokenManager
DelegationTokenManager
implementation which does nothing.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.security.token.DelegationTokenManager
DelegationTokenManager.Listener
-
-
Constructor Summary
Constructors Constructor Description NoOpDelegationTokenManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.void
start(DelegationTokenManager.Listener listener)
Creates a re-occurring task which obtains new tokens and automatically distributes them to all receivers (in local JVM as well as in registered task managers too).void
stop()
Stops re-occurring token obtain task.
-
-
-
Method Detail
-
obtainDelegationTokens
public void obtainDelegationTokens(DelegationTokenContainer container)
Description copied from interface:DelegationTokenManager
Obtains new tokens in a one-time fashion and leaves it up to the caller to distribute them.- Specified by:
obtainDelegationTokens
in interfaceDelegationTokenManager
-
obtainDelegationTokens
public void obtainDelegationTokens()
Description copied from interface:DelegationTokenManager
Obtains new tokens in a one-time fashion and automatically distributes them to all local JVM receivers.- Specified by:
obtainDelegationTokens
in interfaceDelegationTokenManager
-
start
public void start(DelegationTokenManager.Listener listener)
Description copied from interface:DelegationTokenManager
Creates a re-occurring task which obtains new tokens and automatically distributes them to all receivers (in local JVM as well as in registered task managers too). Task manager distribution must be implemented in the listener logic in order to keep the manager logic clean.- Specified by:
start
in interfaceDelegationTokenManager
-
stop
public void stop()
Description copied from interface:DelegationTokenManager
Stops re-occurring token obtain task.- Specified by:
stop
in interfaceDelegationTokenManager
-
-