int adminMaxThreadCount = this.s3Service.getJetS3tProperties() .getIntProperty("s3service.admin-max-thread-count", 20); int maxThreadCount = this.s3Service.getJetS3tProperties() .getIntProperty("s3service.max-thread-count", 2); int maxConnectionCount = this.s3Service.getJetS3tProperties() .getIntProperty("httpclient.max-connections", 20); if (maxConnectionCount < maxThreadCount) {
int adminMaxThreadCount = this.s3Service.getJetS3tProperties() .getIntProperty("s3service.admin-max-thread-count", 20); int maxThreadCount = this.s3Service.getJetS3tProperties() .getIntProperty("s3service.max-thread-count", 2); int maxConnectionCount = this.s3Service.getJetS3tProperties() .getIntProperty("httpclient.max-connections", 20); if (maxConnectionCount < maxThreadCount) {
boolean disableDnsBuckets = s3Service.getJetS3tProperties() .getBoolProperty("s3service.disable-dns-buckets", false);
boolean disableDnsBuckets = s3Service.getJetS3tProperties() .getBoolProperty("s3service.disable-dns-buckets", false);
@Override public S3Bucket createBucket(String bucketName) throws S3ServiceException { try { return this.createBucket(bucketName, getJetS3tProperties().getStringProperty( "s3service.default-bucket-location", "US"), null); } catch (ServiceException se) { throw new S3ServiceException(se); } }
@Override public S3Bucket getOrCreateBucket(String bucketName) throws S3ServiceException { try { return this.getOrCreateBucket(bucketName, getJetS3tProperties().getStringProperty( "s3service.default-bucket-location", "US")); } catch (ServiceException se) { throw new S3ServiceException(se); } }
@Override public S3Bucket getOrCreateBucket(String bucketName) throws S3ServiceException { try { return this.getOrCreateBucket(bucketName, getJetS3tProperties().getStringProperty( "s3service.default-bucket-location", "US")); } catch (ServiceException se) { throw new S3ServiceException(se); } }
@Override public S3Bucket createBucket(String bucketName) throws S3ServiceException { try { return this.createBucket(bucketName, getJetS3tProperties().getStringProperty( "s3service.default-bucket-location", "US"), null); } catch (ServiceException se) { throw new S3ServiceException(se); } }
(BytesProgressWatcher[]) progressWatchers.toArray(new BytesProgressWatcher[progressWatchers.size()])); (new ThreadGroupManager(runnables, threadWatcher, this.s3Service.getJetS3tProperties(), false)
(BytesProgressWatcher[]) progressWatchers.toArray(new BytesProgressWatcher[progressWatchers.size()])); (new ThreadGroupManager(runnables, threadWatcher, this.s3Service.getJetS3tProperties(), false)
this.s3Service.getJetS3tProperties(), true)
this.s3Service.getJetS3tProperties(), true)
this.s3Service.getJetS3tProperties(), true)
this.s3Service.getJetS3tProperties(), true)
this.s3Service.getJetS3tProperties(), true)
this.s3Service.getJetS3tProperties(), true)
this.s3Service.getJetS3tProperties(), true)
this.s3Service.getJetS3tProperties(), true)
this.s3Service.getJetS3tProperties(), true)
private void connect() { String accessKey = getParamString("s3-access-key"); String secretKey = getParamString("s3-secret-key"); String bucket = getParamString("s3-bucket"); AWSCredentials awsCredentials = new AWSCredentials(accessKey, secretKey); S3Service s3service = new RestS3Service(awsCredentials); Jets3tProperties props = s3service.getJetS3tProperties(); String port = getParamString("s3-endpoint-http-port"); String httpsOnly = getParamString("s3-https-only"); String endpoint = getParamString("s3-endpoint"); if(port != null) props.setProperty("s3service.s3-endpoint-http-port", port); if(httpsOnly != null) props.setProperty("s3service.https-only", httpsOnly); if(endpoint != null) props.setProperty("s3service.s3-endpoint", endpoint); //props.setProperty("s3service.s3-endpoint-http-port", "10453"); //props.setProperty("s3service.https-only", "false"); //props.setProperty("s3service.s3-endpoint", "localhost"); props.setProperty("s3service.disable-dns-buckets", "true"); CredentialsProvider credentials = s3service.getCredentialsProvider(); s3service = new RestS3Service(awsCredentials, "Doradus", credentials, props); Object str_threads = getParamString("s3-threads"); int threads = str_threads == null ? 1 : Integer.parseInt(str_threads.toString()); s3_executor = Executors.newFixedThreadPool(threads); m_connection = new AmazonConnection(s3service, bucket); }