change allocationState of HostResponse to resourceState

This commit is contained in:
frank 2011-12-01 13:52:39 -08:00
parent 6e303c10e3
commit d343af96e5
2 changed files with 7 additions and 7 deletions

View File

@ -148,8 +148,8 @@ public class HostResponse extends BaseResponse {
@SerializedName("suitableForMigration") @Param(description="true if this host is suitable(has enough capacity and satisfies all conditions like hosttags, max guests vm limit etc) to migrate a VM to it , false otherwise")
private Boolean suitableForMigration;
@SerializedName("allocationstate") @Param(description="the allocation state of the host")
private String allocationState;
@SerializedName("resourceState") @Param(description="the resource state of the host")
private String resourceState;
@SerializedName(ApiConstants.HYPERVISOR_VERSION) @Param(description="the hypervisor version")
private String hypervisorVersion;
@ -472,12 +472,12 @@ public class HostResponse extends BaseResponse {
this.suitableForMigration = suitableForMigration;
}
public String getAllocationState() {
return allocationState;
public String getResourceState() {
return resourceState;
}
public void setAllocationState(String allocationState) {
this.allocationState = allocationState;
public void setResourceState(String resourceState) {
this.resourceState = resourceState;
}
public String getCpuWithOverprovisioning() {

View File

@ -639,7 +639,7 @@ public class ApiResponseHelper implements ResponseGenerator {
}
}
hostResponse.setAllocationState(host.getResourceState().toString());
hostResponse.setResourceState(host.getResourceState().toString());
hostResponse.setObjectName("host");