|
|
|
@ -41,6 +41,9 @@ public class S3Config extends CommonRepoConfig {
|
|
|
|
|
@Identifier("maxConnections") |
|
|
|
|
private Conf<Integer> maxConnections = HolderKit.simple(200); |
|
|
|
|
|
|
|
|
|
@Identifier("preserveMetadata") |
|
|
|
|
private Conf<Boolean> preserveMetadata = HolderKit.simple(true); |
|
|
|
|
|
|
|
|
|
@GetConfig("endPoint") |
|
|
|
|
public String getEndPoint() { |
|
|
|
|
return endPoint.get(); |
|
|
|
@ -111,6 +114,16 @@ public class S3Config extends CommonRepoConfig {
|
|
|
|
|
this.maxConnections.set(maxConnections); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetConfig("preserveMetadata") |
|
|
|
|
public boolean isPreserveMetadata() { |
|
|
|
|
return preserveMetadata.get(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@SetConfig("preserveMetadata") |
|
|
|
|
public void setPreserveMetadata(boolean preserveMetadata) { |
|
|
|
|
this.preserveMetadata.set(preserveMetadata); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void update(String key) { |
|
|
|
|
super.update(key); |
|
|
|
@ -123,6 +136,7 @@ public class S3Config extends CommonRepoConfig {
|
|
|
|
|
this.setEnablePathStyleAccess(newConfig.isEnablePathStyleAccess()); |
|
|
|
|
this.setSignerOverride(newConfig.getSignerOverride()); |
|
|
|
|
this.setMaxConnections(newConfig.getMaxConnections()); |
|
|
|
|
this.setPreserveMetadata(newConfig.isPreserveMetadata()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -136,6 +150,7 @@ public class S3Config extends CommonRepoConfig {
|
|
|
|
|
cloned.enablePathStyleAccess = (Conf<Boolean>) enablePathStyleAccess.clone(); |
|
|
|
|
cloned.signerOverride = (Conf<String>) signerOverride.clone(); |
|
|
|
|
cloned.maxConnections = (Conf<Integer>) maxConnections.clone(); |
|
|
|
|
cloned.preserveMetadata = (Conf<Boolean>) preserveMetadata.clone(); |
|
|
|
|
return cloned; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|