Class TimelineV2DelegationTokenSecretManagerService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.timeline.security.TimelineDelgationTokenSecretManagerService
org.apache.hadoop.yarn.server.timelineservice.security.TimelineV2DelegationTokenSecretManagerService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
public class TimelineV2DelegationTokenSecretManagerService
extends org.apache.hadoop.yarn.server.timeline.security.TimelineDelgationTokenSecretManagerService
The service wrapper of
TimelineV2DelegationTokenSecretManagerService.TimelineV2DelegationTokenSecretManager.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDelegation token secret manager for ATSv2.Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token, String canceller) protected org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier>createTimelineDelegationTokenSecretManager(long secretKeyInterval, long tokenMaxLifetime, long tokenRenewInterval, long tokenRemovalScanInterval) org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier>generateToken(org.apache.hadoop.security.UserGroupInformation ugi, String renewer) longrenewToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token, String renewer) Methods inherited from class org.apache.hadoop.yarn.server.timeline.security.TimelineDelgationTokenSecretManagerService
getTimelineDelegationTokenSecretManager, serviceInit, serviceStart, serviceStopMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
TimelineV2DelegationTokenSecretManagerService
public TimelineV2DelegationTokenSecretManagerService()
-
-
Method Details
-
createTimelineDelegationTokenSecretManager
protected org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> createTimelineDelegationTokenSecretManager(long secretKeyInterval, long tokenMaxLifetime, long tokenRenewInterval, long tokenRemovalScanInterval) - Specified by:
createTimelineDelegationTokenSecretManagerin classorg.apache.hadoop.yarn.server.timeline.security.TimelineDelgationTokenSecretManagerService
-
generateToken
public org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> generateToken(org.apache.hadoop.security.UserGroupInformation ugi, String renewer) -
renewToken
public long renewToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token, String renewer) throws IOException - Throws:
IOException
-
cancelToken
public void cancelToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> token, String canceller) throws IOException - Throws:
IOException
-