public class TieredStorageConfiguration extends Object implements Serializable, Cloneable
This class is used by the BlobStoreManagedLedgerOffloader to determine which JCloud provider to use for Tiered Storage offloand, along with the associated properties such as region, bucket, user credentials, etc.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TieredStorageConfiguration.BlobStoreBuilder
Builds a JCloudprovider BlobStore from the TieredStorageConfiguration,
which allows us to publish and retrieve data blocks from the external
storage system.
|
static interface |
TieredStorageConfiguration.ConfigValidation
Checks the given TieredStorageConfiguration to see if all of the
required properties are set, and that all properties are valid.
|
static interface |
TieredStorageConfiguration.CredentialBuilder
Constructs the proper credentials for the given JCloud provider
from the given TieredStorageConfiguration.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
BLOB_STORE_PROVIDER_KEY |
static String |
GCS_ACCOUNT_KEY_FILE_FIELD |
protected static int |
MB |
static String |
METADATA_FIELD_BUCKET |
static String |
METADATA_FIELD_ENDPOINT |
static String |
METADATA_FIELD_MAX_BLOCK_SIZE |
static String |
METADATA_FIELD_READ_BUFFER_SIZE |
static String |
METADATA_FIELD_REGION |
static String |
OFFLOADER_PROPERTY_PREFIX |
static String |
S3_ROLE_FIELD |
static String |
S3_ROLE_SESSION_NAME_FIELD |
| Constructor and Description |
|---|
TieredStorageConfiguration(Map<String,String> configProperties) |
public static final String BLOB_STORE_PROVIDER_KEY
public static final String METADATA_FIELD_BUCKET
public static final String METADATA_FIELD_REGION
public static final String METADATA_FIELD_ENDPOINT
public static final String METADATA_FIELD_MAX_BLOCK_SIZE
public static final String METADATA_FIELD_READ_BUFFER_SIZE
public static final String OFFLOADER_PROPERTY_PREFIX
protected static final int MB
public static final String GCS_ACCOUNT_KEY_FILE_FIELD
public static final String S3_ROLE_FIELD
public static final String S3_ROLE_SESSION_NAME_FIELD
public static TieredStorageConfiguration create(Properties props) throws IOException
IOExceptionpublic static TieredStorageConfiguration create(Map<String,String> props)
public String getBlobStoreProviderKey()
public String getDriver()
public String getRegion()
public void setRegion(String s)
public String getBucket()
public String getServiceEndpoint()
public void setServiceEndpoint(String s)
public String getConfigProperty(String propertyName)
propertyName - public JCloudBlobStoreProvider getProvider()
public void setProvider(JCloudBlobStoreProvider provider)
public Integer getMaxBlockSizeInBytes()
public Integer getReadBufferSizeInBytes()
public org.apache.pulsar.jcloud.shade.com.google.common.base.Supplier<org.jclouds.domain.Credentials> getProviderCredentials()
public void setProviderCredentials(org.apache.pulsar.jcloud.shade.com.google.common.base.Supplier<org.jclouds.domain.Credentials> credentials)
public void validate()
public org.jclouds.providers.ProviderMetadata getProviderMetadata()
public BlobStoreLocation getBlobStoreLocation()
public org.jclouds.blobstore.BlobStore getBlobStore()
protected Properties getOverrides()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.