public abstract class AbstractDTService
extends org.apache.hadoop.service.AbstractService
- create - bindToFileSystem(uri, ownerFS) - init - start ...api calls... - stopAs the S3ADelegation mechanism is all configured during the filesystem initalize() operation, it is not ready for use through all the start process.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDTService(String name)
Protected constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindToFileSystem(URI uri,
StoreContext context,
DelegationOperations delegationOperations)
Bind to the filesystem.
|
URI |
getCanonicalUri()
Get the canonical URI of the filesystem, which is what is
used to identify the tokens.
|
org.apache.hadoop.security.UserGroupInformation |
getOwner()
Get the owner of this Service.
|
protected DelegationOperations |
getPolicyProvider() |
protected StoreContext |
getStoreContext() |
protected void |
requireServiceStarted()
Require the service to be started.
|
protected void |
requireServiceState(org.apache.hadoop.service.Service.STATE state)
Require that the service is in a given state.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected AbstractDTService(String name)
name - service name.public void bindToFileSystem(URI uri, StoreContext context, DelegationOperations delegationOperations) throws IOException
init().
Important:
This binding will happen during FileSystem.initialize(); the FS
is not live for actual use and will not yet have interacted with
AWS services.uri - the canonical URI of the FS.context - store contextdelegationOperations - delegation operationsIOException - failure.public URI getCanonicalUri()
public org.apache.hadoop.security.UserGroupInformation getOwner()
protected StoreContext getStoreContext()
protected DelegationOperations getPolicyProvider()
protected void requireServiceState(org.apache.hadoop.service.Service.STATE state)
throws IllegalStateException
state - desired state.IllegalStateException - if the condition is not metprotected void requireServiceStarted()
throws IllegalStateException
IllegalStateException - if it is not.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.