org.glassfish.virtualization.libvirt
Class LibVirtServerPool
java.lang.Object
org.glassfish.virtualization.libvirt.LibVirtServerPool
- All Implemented Interfaces:
- PhysicalServerPool, ServerPool, org.jvnet.hk2.config.ConfigListener
public class LibVirtServerPool
- extends Object
- implements PhysicalServerPool, org.jvnet.hk2.config.ConfigListener
Runtime representation of a serverPool, with its members and such.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LibVirtServerPool
public LibVirtServerPool(org.glassfish.hk2.inject.Injector injector,
ServerPoolConfig config)
getConfig
public ServerPoolConfig getConfig()
- Specified by:
getConfig in interface ServerPool
getName
public String getName()
- Specified by:
getName in interface ServerPool
getVMs
public Collection<VirtualMachine> getVMs()
throws VirtException
- Specified by:
getVMs in interface ServerPool
- Throws:
VirtException
machines
public Iterable<? extends Machine> machines()
- Specified by:
machines in interface PhysicalServerPool
size
public int size()
- Specified by:
size in interface PhysicalServerPool
vmByName
public VirtualMachine vmByName(String name)
throws VirtException
- Specified by:
vmByName in interface ServerPool
- Throws:
VirtException
changed
public org.jvnet.hk2.config.UnprocessedChangeEvents changed(PropertyChangeEvent[] propertyChangeEvents)
- Specified by:
changed in interface org.jvnet.hk2.config.ConfigListener
byName
public Machine byName(String machineName)
- Specified by:
byName in interface PhysicalServerPool
allocate
public PhasedFuture<AllocationPhase,VirtualMachine> allocate(TemplateInstance template,
VirtualCluster cluster,
EventSource<AllocationPhase> source)
throws VirtException
- Specified by:
allocate in interface ServerPool
- Throws:
VirtException
install
public void install(TemplateInstance template)
throws IOException
- Specified by:
install in interface ServerPool
- Throws:
IOException
Copyright © 2012. All Rights Reserved.