public class BmcDataStoreFactory extends Object
BmcDataStore
. This factory allows for the usage of custom classes to
communicate/authenticate with Object Store, else falling back to defaults.Constructor and Description |
---|
BmcDataStoreFactory(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
com.oracle.bmc.objectstorage.ObjectStorage |
createClient(BmcPropertyAccessor propertyAccessor) |
BmcDataStore |
createDataStore(String namespace,
String bucket,
FileSystem.Statistics statistics)
Creates a new
BmcDataStore for the given namespace and bucket. |
static <T> T |
simpleRetry(Function<javax.ws.rs.client.WebTarget,T> retryOperation,
String metadataServiceUrl,
String endpoint) |
@ConstructorProperties(value="configuration") public BmcDataStoreFactory(Configuration configuration)
public BmcDataStore createDataStore(String namespace, String bucket, FileSystem.Statistics statistics)
BmcDataStore
for the given namespace and bucket.namespace
- The namespace.bucket
- The bucket.statistics
- The statistics instance to write metrics topublic com.oracle.bmc.objectstorage.ObjectStorage createClient(BmcPropertyAccessor propertyAccessor)
Copyright © 2016–2023. All rights reserved.