public class DynamicConfigurationResources extends BaseResources<Map<String,String>>
BASE_CLUSTERS_PATH, BASE_POLICIES_PATH, LOCAL_POLICIES_ROOT| Constructor and Description |
|---|
DynamicConfigurationResources(MetadataStore store,
int operationTimeoutSec) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Map<String,String>> |
getDynamicConfiguration() |
CompletableFuture<Optional<Map<String,String>>> |
getDynamicConfigurationAsync() |
boolean |
isDynamicConfigurationPath(String path) |
void |
setDynamicConfiguration(Function<Map<String,String>,Map<String,String>> updateFunction) |
CompletableFuture<Void> |
setDynamicConfigurationAsync(Function<Map<String,String>,Map<String,String>> updateFunction) |
void |
setDynamicConfigurationWithCreate(Function<Optional<Map<String,String>>,Map<String,String>> createFunction) |
CompletableFuture<Void> |
setDynamicConfigurationWithCreateAsync(Function<Optional<Map<String,String>>,Map<String,String>> createFunction) |
create, createAsync, delete, deleteAsync, deleteIfExistsAsync, exists, existsAsync, get, getAsync, getChildren, getChildrenAsync, getOperationTimeoutSec, joinPath, set, setAsync, setWithCreate, setWithCreateAsyncpublic DynamicConfigurationResources(MetadataStore store, int operationTimeoutSec)
public CompletableFuture<Optional<Map<String,String>>> getDynamicConfigurationAsync()
public Optional<Map<String,String>> getDynamicConfiguration() throws MetadataStoreException
MetadataStoreExceptionpublic void setDynamicConfigurationWithCreate(Function<Optional<Map<String,String>>,Map<String,String>> createFunction) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<Void> setDynamicConfigurationWithCreateAsync(Function<Optional<Map<String,String>>,Map<String,String>> createFunction)
public CompletableFuture<Void> setDynamicConfigurationAsync(Function<Map<String,String>,Map<String,String>> updateFunction)
public void setDynamicConfiguration(Function<Map<String,String>,Map<String,String>> updateFunction) throws MetadataStoreException
MetadataStoreExceptionpublic boolean isDynamicConfigurationPath(String path)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.