Package de.bytestore.hostinger.handler
Klasse VirtualizationHandler
java.lang.Object
de.bytestore.hostinger.handler.VirtualizationHandler
The VirtualizationHandler class provides methods to handle virtualized machines and their components.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidcreate(Virtualized virtualizedIO) Executes the create action for the given Virtualized object.static ArrayList<VirtualizedNetwork>getInterfaces(Virtualized virtualizedIO, InterfaceType filterIO, boolean onlyActive) Retrieves a list of VirtualizedNetwork objects representing the network interfaces of a virtualized machine.static voidkill(Virtualized virtualizedIO) Executes the kill action for the given Virtualized object.static List<VirtualizedExtensionPoint>list()Returns a list of VirtualizedExtensionPoint objects.static ArrayList<VirtualizedFile>listFiles(Virtualized virtualizedIO, StorageType filterIO) Retrieves a list of VirtualizedFile objects representing the files in a virtualized machine.static ArrayList<VirtualizedStorage>listStorage(Virtualized virtualizedIO, StorageType filterIO) Retrieves a list of VirtualizedStorage objects representing the storage information in a virtualized machine.static voidpause(Virtualized virtualizedIO) Pauses the execution of a virtualized machine by triggering the pause action for all registered VirtualizedExtensionPoint listeners.static voidreset(Virtualized virtualizedIO) Resets the given Virtualized object.static voidresume(Virtualized virtualizedIO) Resumes the execution of a virtualized machine by triggering the resume action for all registered VirtualizedExtensionPoint listeners.static voidstart(Virtualized virtualizedIO) Starts the virtualized machine by triggering the start action for all registered VirtualizedExtensionPoint listeners.static ProcessStatsstats(Virtualized virtualizedIO) static ProcessStatusstatus(Virtualized virtualizedIO) static voidstop(Virtualized virtualizedIO) static VNCSocketvnc(Virtualized virtualizedIO) Retrieves the VNCSocket object for the given Virtualized machine.
-
Felddetails
-
log
protected static final org.slf4j.Logger log
-
-
Konstruktordetails
-
VirtualizationHandler
public VirtualizationHandler()
-
-
Methodendetails
-
list
Returns a list of VirtualizedExtensionPoint objects.- Gibt zurück:
- A List of VirtualizedExtensionPoint objects.
-
create
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
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
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
-
stop
-
reset
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
Starts the virtualized machine by triggering the start action for all registered VirtualizedExtensionPoint listeners.- Parameter:
virtualizedIO- The Virtualized object representing the virtualized machine.
-
kill
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
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
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
-