/** * Copyright (C) 2010 Cloud.com, 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 . * */ package com.cloud.vm; import com.cloud.agent.manager.Commands; import com.cloud.deploy.DeployDestination; /** * A VirtualMachineGuru knows how to process a certain type of virtual machine. * */ public interface VirtualMachineGuru { /** * finalize the virtual machine deployment. * @param cmds commands that were created. * @param profile virtual machine profile. * @param dest destination to send the command. * @return true if everything checks out. false if not and we should try again. */ boolean finalizeDeployment(Commands cmds, VirtualMachineProfile profile, DeployDestination dest); /** * Check the deployment results. * @param cmds commands and answers that were sent. * @param profile virtual machine profile. * @param dest destination it was sent to. * @return true if deployment was fine; false if it didn't go well. */ boolean checkDeploymentResult(Commands cmds, VirtualMachineProfile profile, DeployDestination dest); }