|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.virtualization.spi.AllocationConstraints
public class AllocationConstraints
Virtual machine allocation constraints such as groups to privilege or ignore.
| Constructor Summary | |
|---|---|
AllocationConstraints(TemplateInstance template,
VirtualCluster targetCluster)
|
|
| Method Summary | |
|---|---|
Collection<ServerPool> |
affinities()
Returns the groups this set of virtual machine allocations should be allocated into |
StaticVirtualMachineInfo |
getCharacteristics()
Returns the requested characteristics for the virtual machines |
VirtualCluster |
getTargetCluster()
Returns the virtual cluster this allocation is targeted to |
TemplateInstance |
getTemplate()
Returns the template associated with the virtual machine order. |
Properties |
getVirtualMachineProperties()
Returns the properties for a specific virtual machine allocation. |
AllocationConstraints |
in(ServerPool... groups)
Specifies the serverPool in which the number of virtual machines should be allocated. |
AllocationConstraints |
noColocationWith(VirtualMachine... vms)
Specifies the virtual machines that should not be co-located on the same hardware with the new allocated virtual machines. |
List<VirtualMachine> |
separateFrom()
Returns a list of virtual machine we would like the new virtual machines to not be co-located with (meaning not running on the same hardware resource). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllocationConstraints(TemplateInstance template,
VirtualCluster targetCluster)
| Method Detail |
|---|
public VirtualCluster getTargetCluster()
public StaticVirtualMachineInfo getCharacteristics()
public AllocationConstraints in(ServerPool... groups)
groups - desired serverPool instance
public AllocationConstraints noColocationWith(VirtualMachine... vms)
vms - list of virtual machines to not co-locate with.
public Properties getVirtualMachineProperties()
public Collection<ServerPool> affinities()
public List<VirtualMachine> separateFrom()
public TemplateInstance getTemplate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||