Interface VirtualMachineBiz
- All Superinterfaces:
net.solarnetwork.service.Identifiable
- All Known Implementing Classes:
AwsVirtualMachineBiz
public interface VirtualMachineBiz
extends net.solarnetwork.service.Identifiable
API for controlling cloud virtual machine instances.
-
Field Summary
Fields inherited from interface net.solarnetwork.service.Identifiable
GROUP_UID_PROPERTY, UID_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeVirtualMachinesState(Set<String> ids, VirtualMachineState state) Change the state of a set of virtual machines.stateForVirtualMachines(Set<String> ids) Get the state for a set of virtual machines.virtualMachineForName(String name) Get a virtual machine by its display name.virtualMachinesForIds(Set<String> ids) Get a set of virtual machines by their IDs.Methods inherited from interface net.solarnetwork.service.Identifiable
getDisplayName, getGroupUid, getUid
-
Method Details
-
virtualMachineForName
Get a virtual machine by its display name.- Parameters:
name- the name of the machine to get- Returns:
- the machine, or null if not available
-
virtualMachinesForIds
Get a set of virtual machines by their IDs.- Parameters:
ids- the IDs of the machines to get- Returns:
- the found machines
-
stateForVirtualMachines
Get the state for a set of virtual machines.- Parameters:
ids- the IDs of the machines to get the state for- Returns:
- a mapping of machine IDs to associated states; never null
-
changeVirtualMachinesState
Change the state of a set of virtual machines.- Parameters:
ids- the IDs of the machines to change the state ofstate- the desired state
-