Package com.cloud.storage

Examples of com.cloud.storage.S3VO


    @Override
    public S3 addS3(final AddS3Cmd addS3Cmd) throws DiscoveryException {

        this.enforceS3PreConditions();

        final S3VO s3VO = new S3VO(UUID.randomUUID().toString(),
                addS3Cmd.getAccessKey(), addS3Cmd.getSecretKey(),
                addS3Cmd.getEndPoint(), addS3Cmd.getBucketName(),
                addS3Cmd.getHttpsFlag(), addS3Cmd.getConnectionTimeout(),
                addS3Cmd.getMaxErrorRetry(), addS3Cmd.getSocketTimeout(), now());

        this.validateFields(s3VO);

        final S3TO s3 = s3VO.toS3TO();
        this.verifyConnection(s3);
        this.verifyBuckets(s3);

        return this.s3Dao.persist(s3VO);
View Full Code Here


    @Override
    public S3TO getS3TO(final Long id) {

        if (id != null) {

            final S3VO s3VO = findById(id);
            if (s3VO != null) {
                return s3VO.toS3TO();
            }

        }

        // NOTE: Excluded listAll / shuffle operation implemented in SwiftDaoImpl ...
View Full Code Here

TOP

Related Classes of com.cloud.storage.S3VO

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.