Package de.dlr.proseo.storagemgr
Class StorageManagerConfiguration
java.lang.Object
de.dlr.proseo.storagemgr.StorageManagerConfiguration
@Configuration
@ConfigurationProperties(prefix="proseo")
@EntityScan(basePackages="de.dlr.proseo.model")
public class StorageManagerConfiguration
extends Object
Configuration class for the prosEO Ingestor component
- Author:
- Hubert Asamer
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) StringMounted default storage type to change it with storage set property -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageManagerConfigurationGets the singleton object for this classGets the absolute path to the default upload source path (always POSIX)Gets the maximum number of parallel threads for Transfer Manager downloadsintGets the maximum number of parallel threads for Transfer Manager uploadsGets the absolute path to the POSIX backend storage (if used)Gets the absolute path to the POSIX file cacheintbyte[]Gets the shared secret for generating Storage Manager download tokens as 256-bit byte arrayvoidsetDefaultStorageType(String storageType) Sets the singleton object for this class
-
Field Details
-
mountedDefaultStorageType
String mountedDefaultStorageTypeMounted default storage type to change it with storage set property
-
-
Constructor Details
-
StorageManagerConfiguration
public StorageManagerConfiguration()
-
-
Method Details
-
getConfiguration
Gets the singleton object for this class- Returns:
- the singleton StorageManagerConfiguration
-
getDefaultStorageType
- Returns:
- the defaultStorageType from config file or mounted storage type
-
setDefaultStorageType
Sets the singleton object for this class- Parameters:
the- default storage type
-
getStorageManagerSecret
public byte[] getStorageManagerSecret()Gets the shared secret for generating Storage Manager download tokens as 256-bit byte array- Returns:
- the Storage Manager secret
-
getFileCheckMaxCycles
- Returns:
- the fileCheckMaxCycles
-
getFileCheckWaitTime
- Returns:
- the fileCheckWaitTime
-
getMaxRequestAttempts
public int getMaxRequestAttempts()- Returns:
- the maxRequestAttempts
-
getPosixCachePath
Gets the absolute path to the POSIX file cache- Returns:
- the POSIX cache path
-
getDefaultSourcePath
Gets the absolute path to the default upload source path (always POSIX)- Returns:
- the default upload source path
-
getPosixBackendPath
Gets the absolute path to the POSIX backend storage (if used)- Returns:
- the POSIX backend storage path
-
getS3DefaultBucket
- Returns:
- the s3DefaultBucket
-
getStorageIdPrefix
- Returns:
- the storageIdPrefix
-
getS3Region
- Returns:
- the s3Region
-
getJoborderPrefix
- Returns:
- the joborderPrefix
-
getJoborderBucket
- Returns:
- the joborderBucket
-
getS3MaxNumberOfBuckets
public int getS3MaxNumberOfBuckets()- Returns:
- the s3MaxNumberOfBuckets
-
getS3AccessKey
- Returns:
- the s3AccessKey
-
getS3SecretAccessKey
- Returns:
- the s3SecretAccessKey
-
getS3EndPoint
- Returns:
- the s3EndPoint
-
getS3DefaultEndPoint
- Returns:
- the s3DefaultEndPoint
-
getMaxUploadThreads
Gets the maximum number of parallel threads for Transfer Manager uploads- Returns:
- the maximum number of parallel uploads
-
getMaxDownloadThreads
Gets the maximum number of parallel threads for Transfer Manager downloads- Returns:
- the maximum number of parallel downloads
-
getExpectedCacheUsage
- Returns:
- the expected cache usage
-
getMaximumCacheUsage
- Returns:
- the maximum cache usage
-