@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract class HistoryServerStateStoreService
extends org.apache.hadoop.service.AbstractService
Modifier and Type | Class and Description |
---|---|
static class |
HistoryServerStateStoreService.HistoryServerState |
Constructor and Description |
---|
HistoryServerStateStoreService() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
closeStorage()
Implementation-specific shutdown.
|
protected abstract void |
initStorage(org.apache.hadoop.conf.Configuration conf)
Implementation-specific initialization.
|
abstract HistoryServerStateStoreService.HistoryServerState |
loadState()
Load the history server state from the state storage.
|
abstract void |
removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId)
Blocking method to remove a delegation token from the state storage.
|
abstract void |
removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
Blocking method to remove a delegation token master key.
|
void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
Initialize the state storage
|
void |
serviceStart()
Start the state storage for use
|
void |
serviceStop()
Shutdown the state storage.
|
protected abstract void |
startStorage()
Implementation-specific startup.
|
abstract void |
storeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
Long renewDate)
Blocking method to store a delegation token along with the current token
sequence number to the state storage.
|
abstract void |
storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
Blocking method to store a delegation token master key.
|
abstract void |
updateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
Long renewDate)
Blocking method to update the expiration of a delegation token
in the state storage.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public void serviceInit(org.apache.hadoop.conf.Configuration conf) throws IOException
serviceInit
in class org.apache.hadoop.service.AbstractService
conf
- the configurationIOException
public void serviceStart() throws IOException
serviceStart
in class org.apache.hadoop.service.AbstractService
IOException
public void serviceStop() throws IOException
serviceStop
in class org.apache.hadoop.service.AbstractService
IOException
protected abstract void initStorage(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- the configurationIOException
protected abstract void startStorage() throws IOException
IOException
protected abstract void closeStorage() throws IOException
IOException
public abstract HistoryServerStateStoreService.HistoryServerState loadState() throws IOException
IOException
public abstract void storeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId, Long renewDate) throws IOException
tokenId
- the token to storerenewDate
- the token renewal deadlineIOException
public abstract void updateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId, Long renewDate) throws IOException
tokenId
- the token to updaterenewDate
- the new token renewal deadlineIOException
public abstract void removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId) throws IOException
tokenId
- the token to removeIOException
public abstract void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key) throws IOException
key
- the master key to storeIOException
public abstract void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key) throws IOException
key
- the master key to removeIOException
Copyright © 2020 Apache Software Foundation. All rights reserved.