Package org.jclouds.cim
Class ResourceAllocationSettingData
java.lang.Object
org.jclouds.cim.SettingData
org.jclouds.cim.ManagedElement
org.jclouds.cim.ResourceAllocationSettingData
- All Implemented Interfaces:
Comparable<SettingData>
The ResourceAllocationSettingData class represents settings specifically
related to an allocated resource that are outside the scope of the CIM class
typically used to represent the resource itself. These settings include
information specific to the allocation that may not be visible to the
consumer of the resource itself. For example, a virtual processor may look
like a 2 ghz processor to the consumer (virtual computer system), however the
virtualization system may use time-slicing to schedule the the virtual
processor to only allow it to use 1 ghz.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
Describes the consumers visibility to the allocated resource.static enum
Specifies how this resource maps to underlying resourcesIf the HostResource array contains any entries, this property reflects how the resource maps to those specific resources.static enum
The type of resource this allocation setting represents. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final String
protected final String
protected final Boolean
protected final Boolean
protected final ResourceAllocationSettingData.ConsumerVisibility
protected final Long
protected final ResourceAllocationSettingData.MappingBehavior
protected final String
protected final String
protected final String
protected final Long
protected final String
protected final ResourceAllocationSettingData.ResourceType
protected final Long
protected final String
protected final Integer
Fields inherited from class org.jclouds.cim.ManagedElement
caption, description
Fields inherited from class org.jclouds.cim.SettingData
elementName, instanceID
-
Constructor Summary
ConstructorsConstructorDescriptionResourceAllocationSettingData
(String elementName, String instanceID, String caption, String description, String address, String addressOnParent, String allocationUnits, Boolean automaticAllocation, Boolean automaticDeallocation, ResourceAllocationSettingData.ConsumerVisibility consumerVisibility, Long limit, ResourceAllocationSettingData.MappingBehavior mappingBehavior, String otherResourceType, String parent, String poolID, Long reservation, String resourceSubType, ResourceAllocationSettingData.ResourceType resourceType, Long virtualQuantity, String virtualQuantityUnits, Integer weight, List<String> connections, List<String> hostResources) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
The address of the resource.Describes the address of this resource in the context of the Parent.This property specifies the units of allocation used by the Reservation and Limit properties.The thing to which this resource is connected.Describes the consumers visibility to the allocated resource.This property exposes specific assignment of resources.getLimit()
This property specifies the upper bound, or maximum amount of resource that will be granted for this allocation.Specifies how this resource maps to underlying resourcesIf the HostResource array contains any entries, this property reflects how the resource maps to those specific resources.A string that describes the resource type when a well defined value is not available and ResourceType has the value "Other".The Parent of the resource.This property specifies which ResourcePool the resource is currently allocated from, or which ResourcePool the resource will be allocated from when the allocation occurs.This property specifies the amount of resource guaranteed to be available for this allocation.A string describing an implementation specific sub-type for this resource.The type of resource this allocation setting represents.This property specifies the quantity of resources presented to the consumer.This property specifies the units used by the VirtualQuantity property.This property specifies a relative priority for this allocation in relation to other allocations from the same ResourcePool.int
hashCode()
This property specifies if the resource will be automatically allocated.This property specifies if the resource will be automatically de-allocated.toString()
Methods inherited from class org.jclouds.cim.ManagedElement
getCaption, getDescription
Methods inherited from class org.jclouds.cim.SettingData
compareTo, getElementName, getInstanceID
-
Field Details
-
address
-
addressOnParent
-
allocationUnits
-
automaticAllocation
-
automaticDeallocation
-
consumerVisibility
-
limit
-
mappingBehavior
-
otherResourceType
-
parent
-
poolID
-
reservation
-
resourceSubType
-
resourceType
-
virtualQuantity
-
virtualQuantityUnits
-
weight
-
connections
-
hostResources
-
-
Constructor Details
-
ResourceAllocationSettingData
public ResourceAllocationSettingData(String elementName, String instanceID, String caption, String description, String address, String addressOnParent, String allocationUnits, Boolean automaticAllocation, Boolean automaticDeallocation, ResourceAllocationSettingData.ConsumerVisibility consumerVisibility, Long limit, ResourceAllocationSettingData.MappingBehavior mappingBehavior, String otherResourceType, String parent, String poolID, Long reservation, String resourceSubType, ResourceAllocationSettingData.ResourceType resourceType, Long virtualQuantity, String virtualQuantityUnits, Integer weight, List<String> connections, List<String> hostResources)
-
-
Method Details
-
builder
-
toBuilder
- Overrides:
toBuilder
in classManagedElement
-
getAddress
The address of the resource. For example, the MAC address of a Ethernet port. -
getAddressOnParent
Describes the address of this resource in the context of the Parent. The Parent/AddressOnParent properties are used to describe the controller relationship as well the ordering of devices on a controller.For example, if the parent is a PCI Controller, this property would specify the PCI slot of this child device. -
getAllocationUnits
This property specifies the units of allocation used by the Reservation and Limit properties. For example, when ResourceType=Processor, AllocationUnits may be set to hertz*10^6 or percent. When ResourceType=Memory, AllocationUnits may be set to bytes*10^3. It is expected that profiles constrain the units that apply in context of particular resource types. The value of this property shall be a legal value of the Programmatic Units qualifier as defined in Annex C.1 of DSP0004 V2.5 or later. -
isAutomaticAllocation
This property specifies if the resource will be automatically allocated. For example when set to true, when the consuming virtual computer system is powered on, this resource would be allocated. A value of false indicates the resource must be explicitly allocated. For example, the setting may represent removable media (cdrom, floppy, etc.) where at power on time, the media is not present. An explicit operation is required to allocate the resource. -
isAutomaticDeallocation
This property specifies if the resource will be automatically de-allocated. For example, when set to true, when the consuming virtual computer system is powered off, this resource would be de-allocated. When set to false, the resource will remain allocated and must be explicitly de-allocated. -
getConsumerVisibility
Describes the consumers visibility to the allocated resource. -
getLimit
This property specifies the upper bound, or maximum amount of resource that will be granted for this allocation. For example, a system which supports memory paging may support setting the Limit of a Memory allocation below that of the VirtualQuantity, thus forcing paging to occur for this allocation. The value of the Limit property is expressed in the unit specified by the value of the AllocationUnits property. -
getMappingBehavior
Specifies how this resource maps to underlying resourcesIf the HostResource array contains any entries, this property reflects how the resource maps to those specific resources. -
getOtherResourceType
A string that describes the resource type when a well defined value is not available and ResourceType has the value "Other". -
getParent
The Parent of the resource. For example, a controller for the current allocation -
getPoolID
This property specifies which ResourcePool the resource is currently allocated from, or which ResourcePool the resource will be allocated from when the allocation occurs. -
getReservation
This property specifies the amount of resource guaranteed to be available for this allocation. On system which support over-commitment of resources, this value is typically used for admission control to prevent an an allocation from being accepted thus preventing starvation. The value of the Reservation property is expressed in the unit specified by the value of the AllocationUnits property. -
getResourceSubType
A string describing an implementation specific sub-type for this resource. F -
getResourceType
The type of resource this allocation setting represents. -
getVirtualQuantity
This property specifies the quantity of resources presented to the consumer. For example, when ResourceType=Processor, this property would reflect the number of discrete Processors presented to the virtual computer system. When ResourceType=Memory, this property could reflect the number of MB reported to the virtual computer system. The value of the VirtualQuantity property should be expressed in units as defined by the value of the VirtualQuantityUnits property. -
getVirtualQuantityUnits
This property specifies the units used by the VirtualQuantity property. For example - if ResourceType=Processor, the value of the VirtualQuantityUnits property may be set to "count", indicating that the value of the VirtualQuantity property is expressed as a count. - if ResourceType=Memory, the value of the VirtualQuantityUnits property may be set to "bytes*10^3", indicating that the value of the VirtualQuantity property is expressed in kilobyte. It is expected that profiles constrain the units that apply in context of particular resource types. The value of this property shall be a legal value of the Programmatic Units qualifier as defined in Annex C.1 of DSP0004 V2.5 or later. -
getWeight
This property specifies a relative priority for this allocation in relation to other allocations from the same ResourcePool. This property has no unit of measure, and is only relevant when compared to other allocations vying for the same host resources. -
getConnections
The thing to which this resource is connected. For example, a named network or switch port. -
getHostResources
This property exposes specific assignment of resources. Each non-null value of the HostResource property shall be formatted as a URI per RFC3986. If this resource is modeled then a value should be a WBEM URI (DSP0207). If the resource is not modeled then see the appropriate profile. Profiles may further constrain the type of URI. A NULL value or empty array requests the implementation decide the kind of host resource. If the virtual resource is mapped to more than one underlying resource, this property may be left NULL. If NULL, the DeviceAllocatedFromPool or ResourceAllocationFromPool associations may be used to determine the pool of host resources this virtual resource may use. If specific assignment is utilized, all underlying resources used by this virtual resource should be listed.The kind of dependency is specified by the ConsumerVisibility and the MappingBehavior properties. Typically the array contains one item, however multiple host resources may be specified. A client may set the value(s) to indicate that the requested virtual resource allocation be based on host resources that are identified by element values. -
toString
- Overrides:
toString
in classManagedElement
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSettingData
-
equals
- Overrides:
equals
in classSettingData
-