Class NoOpDelegationTokenManager
- java.lang.Object
-
- org.apache.flink.runtime.security.token.NoOpDelegationTokenManager
-
- All Implemented Interfaces:
DelegationTokenManager
@Internal public class NoOpDelegationTokenManager extends Object implements DelegationTokenManager
DelegationTokenManagerimplementation 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 voidobtainDelegationTokens()Obtains new tokens in a one-time fashion and automatically distributes them to all local JVM receivers.voidobtainDelegationTokens(DelegationTokenContainer container)Obtains new tokens in a one-time fashion and leaves it up to the caller to distribute them.voidstart(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).voidstop()Stops re-occurring token obtain task.
-
-
-
Method Detail
-
obtainDelegationTokens
public void obtainDelegationTokens(DelegationTokenContainer container)
Description copied from interface:DelegationTokenManagerObtains new tokens in a one-time fashion and leaves it up to the caller to distribute them.- Specified by:
obtainDelegationTokensin interfaceDelegationTokenManager
-
obtainDelegationTokens
public void obtainDelegationTokens()
Description copied from interface:DelegationTokenManagerObtains new tokens in a one-time fashion and automatically distributes them to all local JVM receivers.- Specified by:
obtainDelegationTokensin interfaceDelegationTokenManager
-
start
public void start(DelegationTokenManager.Listener listener)
Description copied from interface:DelegationTokenManagerCreates 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:
startin interfaceDelegationTokenManager
-
stop
public void stop()
Description copied from interface:DelegationTokenManagerStops re-occurring token obtain task.- Specified by:
stopin interfaceDelegationTokenManager
-
-