Package com.cloud.storage

Examples of com.cloud.storage.SwiftVO


            if (Config.SwiftEnable.key().equals(name)) {
                List<HostVO> hosts = _ssvmMgr.listSecondaryStorageHostsInAllZones();
                if (hosts != null && hosts.size() > 0) {
                    return " can not change " + Config.SwiftEnable.key() + " after you have added secondary storage";
                }
                SwiftVO swift = _swiftDao.findById(1L);
                if (swift != null) {
                    return " can not change " + Config.SwiftEnable.key() + " after you have added Swift";
                }
            }
            return null;
View Full Code Here


    @Override
    public SwiftVO addSwift(AddSwiftCmd cmd) throws DiscoveryException {
        if (!isSwiftEnabled()) {
            throw new DiscoveryException("Swift is not enabled");
        }
        SwiftVO swift = new SwiftVO(cmd.getUrl(), cmd.getAccount(), cmd.getUsername(), cmd.getKey());
        swift = _swiftDao.persist(swift);
        return swift;
    }
View Full Code Here

    public static final Logger s_logger = Logger.getLogger(SwiftDaoImpl.class.getName());

    @Override
    public SwiftTO getSwiftTO(Long swiftId) {
        if (swiftId != null) {
            SwiftVO swift = findById(swiftId);
            if (swift != null) {
                return swift.toSwiftTO();
            }
            return null;
        }

        List<SwiftVO> swiftVOs = listAll();
View Full Code Here

    @Override
    public SwiftVO addSwift(AddSwiftCmd cmd) throws DiscoveryException {
        if (!isSwiftEnabled()) {
            throw new DiscoveryException("Swift is not enabled");
        }
        SwiftVO swift = new SwiftVO(cmd.getUrl(), cmd.getAccount(), cmd.getUsername(), cmd.getKey());
        swift = _swiftDao.persist(swift);
        return swift;
    }
View Full Code Here

    public static final Logger s_logger = Logger.getLogger(SwiftDaoImpl.class.getName());

    @Override
    public SwiftTO getSwiftTO(Long swiftId) {
        if (swiftId != null) {
            SwiftVO swift = findById(swiftId);
            if (swift != null) {
                return swift.toSwiftTO();
            }
            return null;
        }

        List<SwiftVO> swiftVOs = listAll();
View Full Code Here

            if (Config.SwiftEnable.key().equals(name)) {
                List<HostVO> hosts = _ssvmMgr.listSecondaryStorageHostsInAllZones();
                if (hosts != null && hosts.size() > 0) {
                    return " can not change " + Config.SwiftEnable.key() + " after you have added secondary storage";
                }
                SwiftVO swift = _swiftDao.findById(1L);
                if (swift != null) {
                    return " can not change " + Config.SwiftEnable.key() + " after you have added Swift";
                }
                if (this._s3Mgr.isS3Enabled()) {
                    return String.format("Swift is not supported when S3 is enabled.");
View Full Code Here

TOP

Related Classes of com.cloud.storage.SwiftVO

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.