public interface VmDAO extends DAO
VmDAO
defines a type for performing CRUD operations on instances of VM
.Modifier and Type | Method and Description |
---|---|
VM |
get(Guid id)
Returns the VM with the specified id.
|
List<VM> |
getAll()
Retrieves the list of all VMS.
|
List<VM> |
getAllForAdGroupByName(String name)
Retrieves all VMs for the specified ad group name.
|
List<VM> |
getAllForDedicatedPowerClientByVds(Guid vds)
Finds those VMs associated with a specific power client by VDS.
|
List<VM> |
getAllForStorageDomain(Guid storageDomain)
Retrieves the list of VMs for the given storage domain.
|
List<VM> |
getAllForUser(Guid user)
Finds all VMs for the specified user.
|
List<VM> |
getAllForUserWithGroupsAndUserRoles(Guid user)
Retrieves the list of VMS for the given user.
|
Map<Guid,VM> |
getAllRunningByVds(Guid vds)
Returns the list of virtual machines running on the specified VDS instance.
|
List<VM> |
getAllRunningForStorageDomain(Guid storageDomain)
Retrieves all running VMs for the given storage domain.
|
List<VM> |
getAllRunningForVds(Guid vds)
Gets the list of virtual machines running on the specified VFDS instance.
|
List<VM> |
getAllUsingQuery(String query)
Finds the list of VMs using the supplied query.
|
List<VM> |
getAllWithTemplate(Guid template)
Retrieves all virtual machines associated with the given template.
|
VM |
getById(Guid id)
Retrieves the VM with the specified id.
|
VM |
getForHibernationImage(Guid hibernationImage)
Retrieves the VM for the specified hibernate image.
|
VM |
getForImage(Guid image)
Retrieves the VM with the specified image id.
|
VM |
getForImageGroup(Guid imageGroup)
Retrieves the VM for the specified image group.
|
void |
remove(Guid vm)
Removes the VM with the specified id.
|
void |
save(VM vm)
Saves the supplied VM.
|
VM getById(Guid id)
id
- the vm idVM getForHibernationImage(Guid hibernationImage)
hibernationImage
- the hibernation imageVM getForImage(Guid image)
image
- the image idVM getForImageGroup(Guid imageGroup)
imageGroup
- the image group idList<VM> getAllForUser(Guid user)
user
- ' the user idList<VM> getAllForUserWithGroupsAndUserRoles(Guid user)
user
- the user idList<VM> getAllForAdGroupByName(String name)
name
- the ad group nameList<VM> getAllWithTemplate(Guid template)
template
- the template idList<VM> getAllRunningForVds(Guid vds)
vds
- the VDS idList<VM> getAllForDedicatedPowerClientByVds(Guid vds)
vds
- the VDS idMap<Guid,VM> getAllRunningByVds(Guid vds)
vds
- the VDS idList<VM> getAllUsingQuery(String query)
query
- the SQL queryList<VM> getAllForStorageDomain(Guid storageDomain)
storageDomain
- the storage domain idList<VM> getAllRunningForStorageDomain(Guid storageDomain)
storageDomain
- the storage domainvoid save(VM vm)
vm
- the VMvoid remove(Guid vm)
vm
- the VM idCopyright © 2012. All Rights Reserved.