Example usage for org.eclipse.jgit.lfs.server.s3 S3Config S3Config

List of usage examples for org.eclipse.jgit.lfs.server.s3 S3Config S3Config

Introduction

In this page you can find the example usage for org.eclipse.jgit.lfs.server.s3 S3Config S3Config.

Prototype

public S3Config(String region, String bucket, String storageClass, String accessKey, String secretKey,
        int expirationSeconds, boolean disableSslVerify) 

Source Link

Document

Constructor for S3Config.

Usage

From source file:com.googlesource.gerrit.plugins.lfs.s3.S3LargeFileRepository.java

License:Apache License

private static S3Config getS3Config(PluginConfigFactory configFactory, String pluginName) {
    PluginConfig cfg = configFactory.getFromGerritConfig(pluginName);
    String region = cfg.getString("region", null);
    String bucket = cfg.getString("bucket", null);
    String storageClass = cfg.getString("storageClass", "REDUCED_REDUNDANCY");
    String accessKey = cfg.getString("accessKey", null);
    String secretKey = cfg.getString("secretKey", null);
    int expirationSeconds = cfg.getInt("expirationSeconds", 60);
    boolean disableSslVerify = cfg.getBoolean("disableSslVerify", false);

    return new S3Config(region, bucket, storageClass, accessKey, secretKey, expirationSeconds,
            disableSslVerify);//from w w  w .  j a  v a  2  s. c  o  m
}