@@ -36,13 +36,17 @@ public class RemoteInstanceTO implements Serializable {
3636 private String vcenterPassword ;
3737 private String vcenterHost ;
3838 private String datacenterName ;
39+ private String clusterName ;
40+ private String hostName ;
3941
4042 public RemoteInstanceTO () {
4143 }
4244
43- public RemoteInstanceTO (String instanceName ) {
45+ public RemoteInstanceTO (String instanceName , String clusterName , String hostName ) {
4446 this .hypervisorType = Hypervisor .HypervisorType .VMware ;
4547 this .instanceName = instanceName ;
48+ this .clusterName = clusterName ;
49+ this .hostName = hostName ;
4650 }
4751
4852 public RemoteInstanceTO (String instanceName , String instancePath , String vcenterHost , String vcenterUsername , String vcenterPassword , String datacenterName ) {
@@ -55,6 +59,12 @@ public RemoteInstanceTO(String instanceName, String instancePath, String vcenter
5559 this .datacenterName = datacenterName ;
5660 }
5761
62+ public RemoteInstanceTO (String instanceName , String instancePath , String vcenterHost , String vcenterUsername , String vcenterPassword , String datacenterName , String clusterName , String hostName ) {
63+ this (instanceName , instancePath , vcenterHost , vcenterUsername , vcenterPassword , datacenterName );
64+ this .clusterName = clusterName ;
65+ this .hostName = hostName ;
66+ }
67+
5868 public Hypervisor .HypervisorType getHypervisorType () {
5969 return this .hypervisorType ;
6070 }
@@ -82,4 +92,12 @@ public String getVcenterHost() {
8292 public String getDatacenterName () {
8393 return datacenterName ;
8494 }
95+
96+ public String getClusterName () {
97+ return clusterName ;
98+ }
99+
100+ public String getHostName () {
101+ return hostName ;
102+ }
85103}
0 commit comments