remove unused class, merge typos

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2018-05-14 16:51:51 +05:30 committed by nvazquez
parent 68eb42b83c
commit 2b8831e54c
4 changed files with 2 additions and 61 deletions

View File

@ -83,7 +83,7 @@ public class ListBackupProvidersCmd extends BaseListCmd {
final BackupProviderResponse backupProviderResponse = new BackupProviderResponse();
backupProviderResponse.setName(provider.getName());
backupProviderResponse.setDescription(provider.getDescription());
backupProviderResponse.setObjectName("provider");
backupProviderResponse.setObjectName("providers");
responses.add(backupProviderResponse);
}
response.setResponses(responses);

View File

@ -43,7 +43,6 @@ public interface BackupManager extends BackupService, Configurable, PluggableSer
"",
"The backup and recovery provider plugin.", true, ConfigKey.Scope.Zone);
/**
* Generate a response from the Backup Policy VO
*/

View File

@ -1,58 +0,0 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you 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.apache.cloudstack.backup;
import java.util.List;
import org.apache.cloudstack.framework.backup.BackupPolicy;
import com.cloud.utils.component.Adapter;
/**
* Backup and Recovery Provider
*/
public interface BackupProviderDriver extends Adapter {
/**
* Register Backup and Recovery Provider
*/
boolean registerProvider(long zoneId, String name, String url, String username, String password);
/**
* True if policy exists on the provider, false if not
*/
boolean policyExists(String policyId, String policyName);
/**
* List existing Backup Policies on the provider
*/
List<BackupPolicy> listBackupPolicies(long providerId);
/**
* Assign a VM to an existing backup policy
*/
boolean assignVMToBackupPolicy(String policyId, String vmId);
/**
* Unregister Backup and Recovery Provider
*/
boolean unregisterProvider();
void restoreVMFromBackup();
void restoreAndAttachVolumeToVM();
}

View File

@ -29,6 +29,6 @@ public class DummyBackupProvider extends AdapterBase implements BackupProvider {
@Override
public String getDescription() {
return "Dummy B&R Provider";
return "Dummy B&R Plugin";
}
}