public class AbstractS3GuardDynamoDBDiagnostic
extends org.apache.hadoop.service.launcher.AbstractLaunchableService
| Constructor and Description |
|---|
AbstractS3GuardDynamoDBDiagnostic(String name)
Constructor.
|
AbstractS3GuardDynamoDBDiagnostic(String name,
S3AFileSystem filesystem,
DynamoDBMetadataStore store,
URI uri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
bindArgs(org.apache.hadoop.conf.Configuration config,
List<String> args) |
protected void |
bindFromCLI(String fsURI)
Bind to the store from a CLI argument.
|
protected static org.apache.hadoop.service.launcher.ServiceLaunchException |
failure(String message)
Generate a failure exception for throwing.
|
protected static org.apache.hadoop.service.launcher.ServiceLaunchException |
failure(String message,
Throwable ex)
Generate a failure exception for throwing.
|
protected List<String> |
getArgumentList(int argMin,
int argMax,
String usage)
Get the list of arguments, after validating the list size.
|
protected List<String> |
getArguments()
Get the argument list.
|
S3AFileSystem |
getFilesystem() |
protected DynamoDBMetadataStore |
getStore() |
URI |
getUri() |
protected static void |
require(boolean condition,
String error)
Require a condition to hold, otherwise an exception is thrown.
|
void |
setUri(String fsURI)
Set the URI from a string; will add a "/" if needed.
|
void |
setUri(URI uri) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic AbstractS3GuardDynamoDBDiagnostic(String name)
name - entry point name.public AbstractS3GuardDynamoDBDiagnostic(String name, @Nullable S3AFileSystem filesystem, @Nullable DynamoDBMetadataStore store, @Nullable URI uri)
name - entry point name.filesystem - filesystemstore - optional metastore.uri - URI. Must be set if filesystem == null.protected static void require(boolean condition,
String error)
condition - condition to be trueerror - text on failure.org.apache.hadoop.service.launcher.ServiceLaunchException - if the condition is not metprotected static org.apache.hadoop.service.launcher.ServiceLaunchException failure(String message, Throwable ex)
message - messageex - optional nested exception.protected static org.apache.hadoop.service.launcher.ServiceLaunchException failure(String message)
message - messagepublic org.apache.hadoop.conf.Configuration bindArgs(org.apache.hadoop.conf.Configuration config,
List<String> args)
throws Exception
bindArgs in interface org.apache.hadoop.service.launcher.LaunchableServicebindArgs in class org.apache.hadoop.service.launcher.AbstractLaunchableServiceExceptionprotected List<String> getArguments()
protected void bindFromCLI(String fsURI) throws IOException
fsURI - filesystem URIIOException - failureprotected DynamoDBMetadataStore getStore()
public S3AFileSystem getFilesystem()
public URI getUri()
public void setUri(URI uri)
public void setUri(String fsURI)
fsURI - filesystem URI.RuntimeException - if the fsURI parameter is not a valid URI.protected List<String> getArgumentList(int argMin, int argMax, String usage)
argMin - minimum number of entries.argMax - maximum number of entries.usage - Usage message.org.apache.hadoop.service.launcher.ServiceLaunchException - if the argument list is not valid.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.