Package org.elasticsearch.common.unit

Examples of org.elasticsearch.common.unit.ByteSizeValue


            }
        }
        if (bytes == -1) {
            return null;
        }
        return new ByteSizeValue(bytes);
    }
View Full Code Here


            }
        }
        if (bytes == -1) {
            return null;
        }
        return new ByteSizeValue(bytes);
    }
View Full Code Here

            }
        }
        if (bytes == -1) {
            return null;
        }
        return new ByteSizeValue(bytes);
    }
View Full Code Here

    public TimeValue getTime() {
        return time();
    }

    public ByteSizeValue indexSize() {
        return new ByteSizeValue(indexSize);
    }
View Full Code Here

    public ByteSizeValue getIndexSize() {
        return indexSize();
    }

    public ByteSizeValue reusedIndexSize() {
        return new ByteSizeValue(reusedIndexSize);
    }
View Full Code Here

    public ByteSizeValue getReusedIndexSize() {
        return reusedIndexSize();
    }

    public ByteSizeValue expectedRecoveredIndexSize() {
        return new ByteSizeValue(indexSize - reusedIndexSize);
    }
View Full Code Here

    /**
     * How much of the index has been recovered.
     */
    public ByteSizeValue recoveredIndexSize() {
        return new ByteSizeValue(recoveredIndexSize);
    }
View Full Code Here

        if (!fileSystem.exists(path)) {
            fileSystem.mkdirs(path);
        }

        this.bufferSizeInBytes = (int) settings.getAsBytesSize("buffer_size", new ByteSizeValue(100, ByteSizeUnit.KB)).bytes();
        this.executor = executor;
    }
View Full Code Here

                } else if ("eu-west-1".equals(regionSetting.toLowerCase())) {
                    region = "EU";
                }
            }
        }
        ByteSizeValue chunkSize = componentSettings.getAsBytesSize("chunk_size", new ByteSizeValue(100, ByteSizeUnit.MB));

        int concurrentStreams = componentSettings.getAsInt("concurrent_streams", 5);
        this.concurrentStreamPool = DynamicExecutors.newScalingThreadPool(1, concurrentStreams, TimeValue.timeValueSeconds(5).millis(), EsExecutors.daemonThreadFactory(settings, "[s3_stream]"));

        logger.debug("using bucket [{}], region [{}], chunk_size [{}], concurrent_streams [{}]", bucket, region, chunkSize, concurrentStreams);
View Full Code Here

        this.client = client;
        this.bucket = bucket;
        this.region = region;
        this.executor = executor;

        this.bufferSizeInBytes = (int) settings.getAsBytesSize("buffer_size", new ByteSizeValue(100, ByteSizeUnit.KB)).bytes();

        if (!client.doesBucketExist(bucket)) {
            if (region != null) {
                client.createBucket(bucket, region);
            } else {
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.unit.ByteSizeValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.