Enum JCloudBlobStoreProvider
- java.lang.Object
-
- java.lang.Enum<JCloudBlobStoreProvider>
-
- org.apache.bookkeeper.mledger.offload.jcloud.provider.JCloudBlobStoreProvider
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JCloudBlobStoreProvider>,TieredStorageConfiguration.BlobStoreBuilder,TieredStorageConfiguration.ConfigValidation,TieredStorageConfiguration.CredentialBuilder
public enum JCloudBlobStoreProvider extends java.lang.Enum<JCloudBlobStoreProvider> implements java.io.Serializable, TieredStorageConfiguration.ConfigValidation, TieredStorageConfiguration.BlobStoreBuilder, TieredStorageConfiguration.CredentialBuilder
Enumeration of the supported JCloud Blob Store Providers.Each Enumeration is responsible for implementation of its own validation, service authentication, and factory method for creating and instance of the JClod BlobStore type. Additional enumerations can be added in the future support other JCloud Providers, currently JClouds supports the following: - providers=[aws-s3, azureblob, b2, google-cloud-storage, rackspace-cloudfiles-us, rackspace-cloudfiles-uk] - apis=[s3, sts, transient, atmos, openstack-swift, openstack-keystone, openstack-keystone-3, rackspace-cloudfiles, rackspace-cloudidentity, filesystem] Note: The driver name associated with each Enum MUST match one of the above vaules, as it is used to instantiate the org.jclouds.ContextBuilder used to create the BlobStore.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALIYUN_OSSAliyun OSS is compatible with the S3 API.AWS_S3AZURE_BLOBGOOGLE_CLOUD_STORAGES3TRANSIENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleandriverSupported(java.lang.String driverName)java.lang.StringgetDriver()static JCloudBlobStoreProvidergetProvider(java.lang.String driver)org.jclouds.providers.ProviderMetadatagetProviderMetadata()static JCloudBlobStoreProvidervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JCloudBlobStoreProvider[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.apache.bookkeeper.mledger.offload.jcloud.provider.TieredStorageConfiguration.BlobStoreBuilder
getBlobStore
-
Methods inherited from interface org.apache.bookkeeper.mledger.offload.jcloud.provider.TieredStorageConfiguration.ConfigValidation
validate
-
Methods inherited from interface org.apache.bookkeeper.mledger.offload.jcloud.provider.TieredStorageConfiguration.CredentialBuilder
buildCredentials
-
-
-
-
Enum Constant Detail
-
AWS_S3
public static final JCloudBlobStoreProvider AWS_S3
-
GOOGLE_CLOUD_STORAGE
public static final JCloudBlobStoreProvider GOOGLE_CLOUD_STORAGE
-
AZURE_BLOB
public static final JCloudBlobStoreProvider AZURE_BLOB
-
ALIYUN_OSS
public static final JCloudBlobStoreProvider ALIYUN_OSS
Aliyun OSS is compatible with the S3 API. https://www.alibabacloud.com/help/doc-detail/64919.htm
-
S3
public static final JCloudBlobStoreProvider S3
-
TRANSIENT
public static final JCloudBlobStoreProvider TRANSIENT
-
-
Method Detail
-
values
public static JCloudBlobStoreProvider[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JCloudBlobStoreProvider c : JCloudBlobStoreProvider.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JCloudBlobStoreProvider valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getProvider
public static JCloudBlobStoreProvider getProvider(java.lang.String driver)
-
driverSupported
public static boolean driverSupported(java.lang.String driverName)
-
getDriver
public java.lang.String getDriver()
-
getProviderMetadata
public org.jclouds.providers.ProviderMetadata getProviderMetadata()
-
-