/*******************************************************************************
* Copyright (c) 2013 GigaSpaces Technologies Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*******************************************************************************/
package org.cloudifysource.esc.driver.provisioning;
import org.cloudifysource.dsl.rest.response.ControllerDetails;
/*********
* Interface for cloud drivers that support 're-bootstrapping' - shutting down managers, updating them and restarting
* the same machines with a new configuration.
*
* @author barakme
* @since 2.5.0
*/
@Deprecated
public interface ManagementLocator {
/**********
* Return existing management servers.
*
* @return the existing management servers, or a 0-length array if non exist.
* @throws CloudProvisioningException
* if failed to load servers list from cloud.
*/
MachineDetails[] getExistingManagementServers() throws CloudProvisioningException;
/**********
* Return existing management servers based on controller information saved previously.
*
* @param controllers
* the controller information used to locate the machine details.
* @return the existing management servers, or a 0-length array if non exist.
* @throws CloudProvisioningException
* if failed to load servers list from cloud.
* @throws UnsupportedOperationException
* if the cloud driver does not support this operation.
*/
MachineDetails[] getExistingManagementServers(final ControllerDetails[] controllers)
throws CloudProvisioningException, UnsupportedOperationException;
}