Class VdcResourceSummaryResponse
java.lang.Object
com.iland.core.web.rest.response.vapp.VappResourceSummaryResponse
com.iland.core.web.rest.response.vdc.VdcResourceSummaryResponse
- All Implemented Interfaces:
Serializable
Vdc Resource Summary Response.
- Author:
- Brett Snyder
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVdcResourceSummaryResponse(double reservedCpu, double reservedMem, double consumedCpu, double consumedMem, double consumedDisk, double provisionedDisk, long numberOfVms, long numberOfVapps, double allocationCpu, double allocationMemory, double configuredMemory, double configuredDisk, double configuredCpu) -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the vdc allocation cpu value in Ghz.doubleGet the vdc allocation memory value.doubleGet the configured CPU.doubleGet the configured memory for the VDC.longReturn the number of Vapps.Methods inherited from class com.iland.core.web.rest.response.vapp.VappResourceSummaryResponse
getConfiguredDisk, getConsumedCpu, getConsumedDisk, getConsumedMem, getNumberOfVms, getProvisionedDisk, getReservedCpu, getReservedMem, toString
-
Constructor Details
-
VdcResourceSummaryResponse
public VdcResourceSummaryResponse(double reservedCpu, double reservedMem, double consumedCpu, double consumedMem, double consumedDisk, double provisionedDisk, long numberOfVms, long numberOfVapps, double allocationCpu, double allocationMemory, double configuredMemory, double configuredDisk, double configuredCpu)
-
-
Method Details
-
getNumberOfVapps
public long getNumberOfVapps()Return the number of Vapps.- Returns:
- number of Vapps.
-
getAllocationCpu
public double getAllocationCpu()Get the vdc allocation cpu value in Ghz.Should be 0 for Vdc types other than allocation model.
- Returns:
- double representing allocation cpu in MHZ
-
getAllocationMemory
public double getAllocationMemory()Get the vdc allocation memory value.Should be 0 for Vdc types other than allocation model.
- Returns:
- double representing allocation memory
-
getConfiguredMemory
public double getConfiguredMemory()Get the configured memory for the VDC. The sum of all non-powered-off VM memory allocations.- Returns:
- double representing configured memory
-
getConfiguredCpu
public double getConfiguredCpu()Get the configured CPU.- Returns:
- configured cpu
-