类 TieredStorageConfiguration
java.lang.Object
org.apache.bookkeeper.mledger.offload.jcloud.provider.TieredStorageConfiguration
Class responsible for holding all of the tiered storage configuration data
that is set in the global Pulsar broker.conf file.
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.
-
嵌套类概要
嵌套类修饰符和类型类说明static interfaceBuilds a JCloudprovider BlobStore from the TieredStorageConfiguration, which allows us to publish and retrieve data blocks from the external storage system.static interfaceChecks the given TieredStorageConfiguration to see if all of the required properties are set, and that all properties are valid.static interfaceConstructs the proper credentials for the given JCloud provider from the given TieredStorageConfiguration. -
字段概要
字段修饰符和类型字段说明static final Stringstatic final longstatic final longstatic final longstatic final Stringstatic final Stringstatic final Stringprotected static final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static TieredStorageConfigurationstatic TieredStorageConfigurationcreate(Properties props) org.jclouds.blobstore.BlobStoregetConfigProperty(String propertyName) Used to find a specific configuration property other than one of the predefined ones.longlonglongprotected PropertiesSupplier<org.jclouds.domain.Credentials>org.jclouds.providers.ProviderMetadatavoidsetProvider(JCloudBlobStoreProvider provider) voidsetProviderCredentials(Supplier<org.jclouds.domain.Credentials> credentials) voidvoidvoidvalidate()
-
字段详细资料
-
BLOB_STORE_PROVIDER_KEY
- 另请参阅:
-
METADATA_FIELD_BUCKET
- 另请参阅:
-
METADATA_FIELD_REGION
- 另请参阅:
-
METADATA_FIELD_ENDPOINT
- 另请参阅:
-
METADATA_FIELD_MAX_BLOCK_SIZE
- 另请参阅:
-
METADATA_FIELD_MIN_BLOCK_SIZE
- 另请参阅:
-
METADATA_FIELD_READ_BUFFER_SIZE
- 另请参阅:
-
METADATA_FIELD_WRITE_BUFFER_SIZE
- 另请参阅:
-
OFFLOADER_PROPERTY_PREFIX
- 另请参阅:
-
MAX_OFFLOAD_SEGMENT_ROLLOVER_TIME_SEC
- 另请参阅:
-
MIN_OFFLOAD_SEGMENT_ROLLOVER_TIME_SEC
- 另请参阅:
-
DEFAULT_MAX_SEGMENT_TIME_IN_SECOND
public static final long DEFAULT_MAX_SEGMENT_TIME_IN_SECOND- 另请参阅:
-
DEFAULT_MIN_SEGMENT_TIME_IN_SECOND
public static final long DEFAULT_MIN_SEGMENT_TIME_IN_SECOND- 另请参阅:
-
MAX_OFFLOAD_SEGMENT_SIZE_IN_BYTES
- 另请参阅:
-
DEFAULT_MAX_SEGMENT_SIZE_IN_BYTES
public static final long DEFAULT_MAX_SEGMENT_SIZE_IN_BYTES- 另请参阅:
-
MB
protected static final int MB- 另请参阅:
-
GCS_ACCOUNT_KEY_FILE_FIELD
- 另请参阅:
-
S3_ID_FIELD
- 另请参阅:
-
S3_SECRET_FIELD
- 另请参阅:
-
S3_ROLE_FIELD
- 另请参阅:
-
S3_ROLE_SESSION_NAME_FIELD
- 另请参阅:
-
-
构造器详细资料
-
TieredStorageConfiguration
-
-
方法详细资料
-
create
- 抛出:
IOException
-
create
-
getKeys
-
getBlobStoreProviderKey
-
getDriver
-
getRegion
-
setRegion
-
getBucket
-
getServiceEndpoint
-
getMaxSegmentTimeInSecond
public long getMaxSegmentTimeInSecond() -
getMinSegmentTimeInSecond
public long getMinSegmentTimeInSecond() -
getMaxSegmentSizeInBytes
public long getMaxSegmentSizeInBytes() -
setServiceEndpoint
-
getConfigProperty
Used to find a specific configuration property other than one of the predefined ones. This allows for any number of provider specific, or new properties to added in the future.- 参数:
propertyName-- 返回:
-
getProvider
-
setProvider
-
getMaxBlockSizeInBytes
-
getMinBlockSizeInBytes
-
getReadBufferSizeInBytes
-
getWriteBufferSizeInBytes
-
getProviderCredentials
-
setProviderCredentials
-
validate
public void validate() -
getProviderMetadata
public org.jclouds.providers.ProviderMetadata getProviderMetadata() -
getBlobStoreLocation
-
getBlobStore
public org.jclouds.blobstore.BlobStore getBlobStore() -
getOffloadDriverMetadata
-
getOverrides
-