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.
  • Method Details

    • virtualMachineForName

      VirtualMachine virtualMachineForName(String name)
      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

      Iterable<VirtualMachine> virtualMachinesForIds(Set<String> ids)
      Get a set of virtual machines by their IDs.
      Parameters:
      ids - the IDs of the machines to get
      Returns:
      the found machines
    • stateForVirtualMachines

      Map<String,VirtualMachineState> stateForVirtualMachines(Set<String> ids)
      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

      void changeVirtualMachinesState(Set<String> ids, VirtualMachineState state)
      Change the state of a set of virtual machines.
      Parameters:
      ids - the IDs of the machines to change the state of
      state - the desired state