|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthu.mta.sztaki.lpds.cloud.simulator.iaas.constraints.ResourceConstraints
public abstract class ResourceConstraints
This class defines the basic properties (cpu core count, per core processing power, and memory size) and operations on resoruce constraints. These constraints are expected to be used to express resource capacities of physical/virtual machines or complete infrastructures, as well as requests for resource allocations/virtual machines.
Constructor Summary | |
---|---|
ResourceConstraints()
|
Method Summary | |
---|---|
int |
compareTo(ResourceConstraints o)
offers a comparator between two constraints objects. |
abstract double |
getRequiredCPUs()
Allows to query how many CPUs this constraints object represent |
abstract long |
getRequiredMemory()
Allows to query how much memory this constraints object represent |
abstract double |
getRequiredProcessingPower()
Allows to query the performance of a single CPU core represented by this constraints object represent |
abstract double |
getTotalProcessingPower()
The total processing power of all cores represented by this constraints object: total=cpus*processingpower |
abstract boolean |
isRequiredProcessingIsMinimum()
Determines if the specified amounts of resources are minimally or exactly required. |
String |
toString()
provides a simple one line representation of resource constraints listing all its inherent properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceConstraints()
Method Detail |
---|
public String toString()
toString
in class Object
public int compareTo(ResourceConstraints o)
compareTo
in interface Comparable<ResourceConstraints>
public abstract double getRequiredCPUs()
public abstract double getRequiredProcessingPower()
public abstract boolean isRequiredProcessingIsMinimum()
public abstract long getRequiredMemory()
public abstract double getTotalProcessingPower()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |