Klasse VirtualizationHandler

java.lang.Object
de.bytestore.hostinger.handler.VirtualizationHandler

public class VirtualizationHandler extends Object
The VirtualizationHandler class provides methods to handle virtualized machines and their components.
  • Felddetails

    • log

      protected static final org.slf4j.Logger log
  • Konstruktordetails

    • VirtualizationHandler

      public VirtualizationHandler()
  • Methodendetails

    • list

      public static List<VirtualizedExtensionPoint> list()
      Returns a list of VirtualizedExtensionPoint objects.
      Gibt zurück:
      A List of VirtualizedExtensionPoint objects.
    • create

      public static void create(Virtualized virtualizedIO)
      Executes the create action for the given Virtualized object. This method triggers the create action for all registered VirtualizedExtensionPoint listeners.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine.
    • listStorage

      public static ArrayList<VirtualizedStorage> listStorage(Virtualized virtualizedIO, StorageType filterIO)
      Retrieves a list of VirtualizedStorage objects representing the storage information in a virtualized machine.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine.
      filterIO - The StorageType object specifying the type of storage to retrieve. Use StorageType.UNKNOWN to retrieve all storage.
      Gibt zurück:
      An ArrayList of VirtualizedStorage objects representing the storage that meet the specified criteria.
    • listFiles

      public static ArrayList<VirtualizedFile> listFiles(Virtualized virtualizedIO, StorageType filterIO)
      Retrieves a list of VirtualizedFile objects representing the files in a virtualized machine.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine.
      filterIO - The StorageType object specifying the type of files to retrieve. Use StorageType.UNKNOWN to retrieve all files.
      Gibt zurück:
      An ArrayList of VirtualizedFile objects representing the files that meet the specified criteria.
    • getInterfaces

      public static ArrayList<VirtualizedNetwork> getInterfaces(Virtualized virtualizedIO, InterfaceType filterIO, boolean onlyActive)
      Retrieves a list of VirtualizedNetwork objects representing the network interfaces of a virtualized machine.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine.
      filterIO - The InterfaceType object specifying the type of interfaces to retrieve. Use InterfaceType.UNKNOWN to retrieve all interfaces.
      onlyActive - Determines whether to only retrieve active interfaces.
      Gibt zurück:
      An ArrayList of VirtualizedNetwork objects representing the network interfaces that meet the specified criteria.
    • vnc

      public static VNCSocket vnc(Virtualized virtualizedIO)
      Retrieves the VNCSocket object for the given Virtualized machine.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine.
      Gibt zurück:
      The VNCSocket object representing the VNC socket connection information.
    • status

      public static ProcessStatus status(Virtualized virtualizedIO)
    • stop

      public static void stop(Virtualized virtualizedIO)
    • reset

      public static void reset(Virtualized virtualizedIO)
      Resets the given Virtualized object. This method triggers the reset action for all registered VirtualizedExtensionPoint listeners.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine.
    • start

      public static void start(Virtualized virtualizedIO)
      Starts the virtualized machine by triggering the start action for all registered VirtualizedExtensionPoint listeners.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine.
    • kill

      public static void kill(Virtualized virtualizedIO)
      Executes the kill action for the given Virtualized object. This method triggers the kill action for all registered VirtualizedExtensionPoint listeners.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine.
    • resume

      public static void resume(Virtualized virtualizedIO)
      Resumes the execution of a virtualized machine by triggering the resume action for all registered VirtualizedExtensionPoint listeners.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine to resume.
      Löst aus:
      RuntimeException - If an exception occurs during the resume action.
    • pause

      public static void pause(Virtualized virtualizedIO)
      Pauses the execution of a virtualized machine by triggering the pause action for all registered VirtualizedExtensionPoint listeners.
      Parameter:
      virtualizedIO - The Virtualized object representing the virtualized machine to pause.
      Löst aus:
      RuntimeException - If an exception occurs during the pause action.
    • stats

      public static ProcessStats stats(Virtualized virtualizedIO)