public final class NamespaceUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
isNamespaceEnabled(AbfsClient abfsClient,
TracingContext tracingContext)
Return if the account used in the provided abfsClient object namespace enabled
or not.
|
public static Boolean isNamespaceEnabled(AbfsClient abfsClient, TracingContext tracingContext) throws AzureBlobFileSystemException
AbfsClient.getAclStatus(String, TracingContext).
HttpURLConnection.HTTP_BAD_REQUEST, the account is non-namespace enabled.
abfsClient - client for which namespace-enabled to be checked.tracingContext - object to correlate Store requests.AzureBlobFileSystemException - throws back the exception the method receives
from the AbfsClient.getAclStatus(String, TracingContext). In case it gets
AbfsRestOperationException, it checks if the exception statusCode is
BAD_REQUEST or not. If not, then it will pass the exception to the calling method.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.