| /** |
| * Copyright (C) 2011 Citrix Systems, Inc. All rights reserved. |
| * |
| * This software is licensed under the GNU General Public License v3 or later. |
| * |
| * It is free software: you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License as published by |
| * the Free Software Foundation, either version 3 of the License, or any later version. |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| * |
| * You should have received a copy of the GNU General Public License |
| * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| * |
| */ |
| |
| /** |
| * |
| * @author Anthony Xu |
| * |
| */ |
|
|
| package com.cloud.storage.swift; |
| |
| import java.util.List; |
| |
| import com.cloud.agent.api.to.SwiftTO; |
| import com.cloud.api.commands.AddSwiftCmd; |
| import com.cloud.api.commands.DeleteIsoCmd; |
| import com.cloud.api.commands.DeleteTemplateCmd; |
| import com.cloud.api.commands.ListSwiftsCmd; |
| import com.cloud.exception.DiscoveryException; |
| import com.cloud.storage.Swift; |
| import com.cloud.storage.SwiftVO; |
| import com.cloud.storage.VMTemplateSwiftVO; |
| import com.cloud.utils.component.Manager; |
| public interface SwiftManager extends Manager { |
| |
| SwiftTO getSwiftTO(Long swiftId); |
| |
| SwiftTO getSwiftTO(); |
| |
| Swift addSwift(AddSwiftCmd cmd) throws DiscoveryException; |
| |
| boolean isSwiftEnabled(); |
| |
| public boolean isTemplateInstalled(Long templateId); |
| |
| void deleteIso(DeleteIsoCmd cmd); |
| |
| void deleteTemplate(DeleteTemplateCmd cmd); |
| |
| void propagateTemplateOnAllZones(Long tmpltId); |
| |
| void propagateSwiftTmplteOnZone(Long zoneId); |
| |
| Long chooseZoneForTmpltExtract(Long tmpltId); |
| |
| List<SwiftVO> listSwifts(ListSwiftsCmd cmd); |
| |
| VMTemplateSwiftVO findByTmpltId(Long tmpltId); |
| } |