Interface MachineExtensionPoint
- All Superinterfaces:
org.pf4j.ExtensionPoint,ExtensionProviderPoint
Interface for machine extension points.
-
Method Summary
Modifier and TypeMethodDescriptionvoidattach(Machine machineIO, ProcessConsole consoleIO) Attaches the specified console to the given machine (Serial Console).config()Retrieves the configuration for a given machine.Retrieves the configuration for a given machine.Retrieves the log for the specified Machines object.voidRestarts the given Machines object.voidStarts the given Machine object.Calculates the statistics for a given machine.Retrieves the status of the specified Machines object by executing the status action using available machine extension points.voidStops the given Machines object.Creates a VNCSocket for virtualized Machines.voidSend WOL Magic Packet to given Machines to Wake Up on Lan.Methods inherited from interface de.bytestore.hostinger.extension.ExtensionProviderPoint
name
-
Method Details
-
stats
Calculates the statistics for a given machine.- Parameters:
machineIO- The Machines object representing the machine for which the statistics should be calculated.- Returns:
- The ProcessStats object containing the calculated statistics.
-
config
Retrieves the configuration for a given machine.- Parameters:
machineIO- The Machines object representing the machine for which the configuration should be retrieved.- Returns:
- The MachineExtensionConfig object containing the configuration settings for the specified machine.
-
config
MachineExtensionConfig config()Retrieves the configuration for a given machine.- Returns:
- The MachineExtensionConfig object containing the configuration settings for the specified machine.
-
vnc
Creates a VNCSocket for virtualized Machines.- Parameters:
virtualized- the Machines object representing the virtualized machine- Returns:
- the VNCSocket object containing the information necessary for VNC connection (ticket, cert, port, hostname, user)
-
status
Retrieves the status of the specified Machines object by executing the status action using available machine extension points.- Parameters:
machinesIO- the Machines object for which the status needs to be retrieved- Returns:
- the ProcessStatus representing the status of the specified Machines object
-
restart
Restarts the given Machines object.- Parameters:
machinesIO- the Machines object that needs to be restarted
-
stop
Stops the given Machines object.- Parameters:
machinesIO- The Machines object representing the machine to be stopped.
-
start
Starts the given Machine object.- Parameters:
machinesIO- The Machine object that needs to be started.
-
wol
Send WOL Magic Packet to given Machines to Wake Up on Lan.- Parameters:
machinesIO-
-
log
Retrieves the log for the specified Machines object.- Parameters:
machinesIO- The Machines object for which the log needs to be retrieved.- Returns:
- The log string for the specified Machines object.
-
attach
Attaches the specified console to the given machine (Serial Console).- Parameters:
machineIO- The Machine object to which the console will be attached.consoleIO- The ProcessConsole object representing the console to be attached.
-