|
| 1 | +// Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +// or more contributor license agreements. See the NOTICE file |
| 3 | +// distributed with this work for additional information |
| 4 | +// regarding copyright ownership. The ASF licenses this file |
| 5 | +// to you under the Apache License, Version 2.0 (the |
| 6 | +// "License"); you may not use this file except in compliance |
| 7 | +// with the License. You may obtain a copy of the License at |
| 8 | +// |
| 9 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +// |
| 11 | +// Unless required by applicable law or agreed to in writing, |
| 12 | +// software distributed under the License is distributed on an |
| 13 | +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +// KIND, either express or implied. See the License for the |
| 15 | +// specific language governing permissions and limitations |
| 16 | +// under the License. |
| 17 | +package com.cloud.agent.api.to; |
| 18 | + |
| 19 | +/** |
| 20 | + * TO class sent to the hypervisor layer with the information needed to handle |
| 21 | + * VM Migrations from Vmware to KVM templates |
| 22 | + */ |
| 23 | +public class VmwareVmForMigrationTO { |
| 24 | + |
| 25 | + private String vcenter; |
| 26 | + private String datacenter; |
| 27 | + private String cluster; |
| 28 | + private String username; |
| 29 | + private String password; |
| 30 | + private String url; |
| 31 | + private String host; |
| 32 | + private String vmName; |
| 33 | + private String secondaryStorageUrl; |
| 34 | + |
| 35 | + public VmwareVmForMigrationTO() { |
| 36 | + } |
| 37 | + |
| 38 | + public VmwareVmForMigrationTO(String vcenter, String datacenter, String cluster, String username, String password, |
| 39 | + String url, String hostname, String vmName, String secondaryStorageUrl) { |
| 40 | + this.vcenter = vcenter; |
| 41 | + this.datacenter = datacenter; |
| 42 | + this.cluster = cluster; |
| 43 | + this.username = username; |
| 44 | + this.password = password; |
| 45 | + this.url = url; |
| 46 | + this.host = hostname; |
| 47 | + this.vmName = vmName; |
| 48 | + this.secondaryStorageUrl = secondaryStorageUrl; |
| 49 | + } |
| 50 | + |
| 51 | + public String getVcenter() { |
| 52 | + return vcenter; |
| 53 | + } |
| 54 | + |
| 55 | + public String getDatacenter() { |
| 56 | + return datacenter; |
| 57 | + } |
| 58 | + |
| 59 | + public String getUsername() { |
| 60 | + return username; |
| 61 | + } |
| 62 | + |
| 63 | + public String getPassword() { |
| 64 | + return password; |
| 65 | + } |
| 66 | + |
| 67 | + public String getUrl() { |
| 68 | + return url; |
| 69 | + } |
| 70 | + |
| 71 | + public String getHost() { |
| 72 | + return host; |
| 73 | + } |
| 74 | + |
| 75 | + public String getVmName() { |
| 76 | + return vmName; |
| 77 | + } |
| 78 | + |
| 79 | + public String getSecondaryStorageUrl() { |
| 80 | + return secondaryStorageUrl; |
| 81 | + } |
| 82 | + |
| 83 | + public String getCluster() { |
| 84 | + return cluster; |
| 85 | + } |
| 86 | +} |
0 commit comments