|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerPool
Abstract a set of servers than can be used to provide VirtualMachine
| Method Summary | |
|---|---|
PhasedFuture<AllocationPhase,VirtualMachine> |
allocate(TemplateInstance template,
VirtualCluster cluster,
EventSource<AllocationPhase> source)
Allocates number of virtual machines on any machine belonging to this server pool, each virtual machine should be based on the provided template. |
ServerPoolConfig |
getConfig()
Returns the configuration for this server pool. |
String |
getName()
Returns this pool's name. |
Collection<VirtualMachine> |
getVMs()
Returns all allocated virtual machine in this server pool |
void |
install(TemplateInstance template)
|
VirtualMachine |
vmByName(String name)
Returns an allocated virtual machine in this server pool using its name. |
| Method Detail |
|---|
ServerPoolConfig getConfig()
String getName()
Collection<VirtualMachine> getVMs()
throws VirtException
VirtException
VirtualMachine vmByName(String name)
throws VirtException
name - virtual machine name
VirtException - if the vm cannot be obtained
PhasedFuture<AllocationPhase,VirtualMachine> allocate(TemplateInstance template,
VirtualCluster cluster,
EventSource<AllocationPhase> source)
throws VirtException
template - template for the virtual machinescluster - the virtual cluster in which the virtual machine must be added
using the VirtualCluster#add(TemplateInstance, VirtualMachine) method
VirtException - when the virtual machine creation failed.
void install(TemplateInstance template)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||