T
- the FileStoreProvider type that this switcher will returnpublic abstract class FileStoreSwitcher<T> extends Object
Modifier and Type | Field and Description |
---|---|
static String |
S3_BUCKET_PROPERTY_NAME |
static String |
S3_ENDPOINT_OVERRIDE_PROPERTY_NAME |
static String |
S3_MAX_CONCURRENCY |
static String |
S3_REGION_PROPERTY_NAME |
Modifier | Constructor and Description |
---|---|
protected |
FileStoreSwitcher(JiraProperties jiraProperties,
DataCenterOrDevModeCheck dataCenterOrDevModeCheck,
FileStoresConfigurationLoader fileStoresConfigurationLoader,
FileStoreAssociationTarget fileStoreAssociationTarget,
Class<? extends T> defaultImplementation,
Map<FileStoreConfigType,Class<? extends T>> fileStoreConfigTypeToProviderClassMap,
Class<? extends T> invalidImplementation) |
Modifier and Type | Method and Description |
---|---|
protected io.atlassian.fugue.Either<String,io.atlassian.fugue.Unit> |
canUseAlternateFileStore()
Only DC installations are licensed to store files in alternative object stores.
|
Class<? extends T> |
getComponentImplementation()
This method is used by the Pico
ContainerRegistrar
to choose which implementation class will be used when providing an instance of type T. |
Optional<io.atlassian.fugue.Either<FileStoreLoadingError,FileStoreConfig>> |
getFileStoreConfig() |
protected boolean |
isS3ConfiguredViaSystemProperties()
Checks if Jira has been configured to store avatars and attachments in S3 using system properties.
|
public static final String S3_BUCKET_PROPERTY_NAME
public static final String S3_REGION_PROPERTY_NAME
public static final String S3_MAX_CONCURRENCY
public static final String S3_ENDPOINT_OVERRIDE_PROPERTY_NAME
protected FileStoreSwitcher(JiraProperties jiraProperties, DataCenterOrDevModeCheck dataCenterOrDevModeCheck, FileStoresConfigurationLoader fileStoresConfigurationLoader, FileStoreAssociationTarget fileStoreAssociationTarget, Class<? extends T> defaultImplementation, Map<FileStoreConfigType,Class<? extends T>> fileStoreConfigTypeToProviderClassMap, Class<? extends T> invalidImplementation)
public final Class<? extends T> getComponentImplementation()
ContainerRegistrar
to choose which implementation class will be used when providing an instance of type T.public Optional<io.atlassian.fugue.Either<FileStoreLoadingError,FileStoreConfig>> getFileStoreConfig()
protected final boolean isS3ConfiguredViaSystemProperties()
protected io.atlassian.fugue.Either<String,io.atlassian.fugue.Unit> canUseAlternateFileStore()
Copyright © 2002-2024 Atlassian. All Rights Reserved.