|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.AbstractService
org.apache.hadoop.mapreduce.v2.hs.HistoryServerStateStoreService
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class HistoryServerStateStoreService
| Nested Class Summary | |
|---|---|
static class |
HistoryServerStateStoreService.HistoryServerState
|
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
|---|
org.apache.hadoop.service.Service.STATE |
| Constructor Summary | |
|---|---|
HistoryServerStateStoreService()
|
|
| Method Summary | |
|---|---|
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. |
| Methods 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HistoryServerStateStoreService()
| Method Detail |
|---|
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws IOException
serviceInit in class org.apache.hadoop.service.AbstractServiceconf - the configuration
IOException
public void serviceStart()
throws IOException
serviceStart in class org.apache.hadoop.service.AbstractServiceIOException
public void serviceStop()
throws IOException
serviceStop in class org.apache.hadoop.service.AbstractServiceIOException
protected abstract void initStorage(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf - the configuration
IOException
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 deadline
IOException
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 deadline
IOException
public abstract void removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId)
throws IOException
tokenId - the token to remove
IOException
public abstract void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
throws IOException
key - the master key to store
IOException
public abstract void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
throws IOException
key - the master key to remove
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||