Klasse Machines
java.lang.Object
de.bytestore.hostinger.entity.hosting.Machines
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungRetrieves the MachineExtensionConfig for the current Machines object.getCores()
getId()
getLog()
Retrieves the log for the current Machines object.getName()
Retrieves the ProcessExtensionConfig for the current Machines object.void
restart()
Restarts the machine.void
void
setCreatedBy
(String createdBy) void
setCreatedDate
(OffsetDateTime createdDate) void
setDescription
(String description) void
setHostnames
(List<Hostnames> hostnames) void
void
setLastModifiedBy
(String lastModifiedBy) void
setLastModifiedDate
(OffsetDateTime lastModifiedDate) void
void
setMemoryUnit
(MemoryUnit memoryUnit) void
void
setProvider
(String provider) void
setVolumes
(Volumes volumes) stats()
Executes the stats action for the given Machines object and returns the ProcessStats result.status()
Retrieves the status of the current Machines object.void
stop()
Stops the machine.vnc()
Retrieves the VNC session for the current Machines object.void
wol()
Wakes up the specified machine by calling the "wol" method on all registeredungültiges @link
MachineExtensionPoint
Machines
object.
-
Konstruktordetails
-
Machines
public Machines()
-
-
Methodendetails
-
getProvider
-
setProvider
-
getVolumes
-
setVolumes
-
getHostnames
-
setHostnames
-
getMemoryUnit
-
setMemoryUnit
-
getMemory
-
setMemory
-
getDescription
-
setDescription
-
getName
-
setName
-
getCores
-
setCores
-
getLastModifiedDate
-
setLastModifiedDate
-
getLastModifiedBy
-
setLastModifiedBy
-
getCreatedDate
-
setCreatedDate
-
getCreatedBy
-
setCreatedBy
-
getId
-
setId
-
getProcessConfig
Retrieves the ProcessExtensionConfig for the current Machines object.- Gibt zurück:
- The ProcessExtensionConfig object representing the configuration of the process extension.
- Löst aus:
RuntimeException
- if there is an error retrieving the process config.
-
stats
Executes the stats action for the given Machines object and returns the ProcessStats result.- Gibt zurück:
- the ProcessStats object containing the statistics data (cpu, memory, swap, disk, download, upload)
- Löst aus:
RuntimeException
- if there is an error getting the machine stats
-
vnc
Retrieves the VNC session for the current Machines object.- Gibt zurück:
- The VNCSession object representing the VNC session configuration.
-
getConfig
Retrieves the MachineExtensionConfig for the current Machines object.- Gibt zurück:
- The MachineExtensionConfig object representing the configuration of the machine extension.
- Löst aus:
RuntimeException
- if there is an error retrieving the machine config.
-
status
Retrieves the status of the current Machines object.- Gibt zurück:
- The ProcessStatus representing the current status of the Machines object. Returns ProcessStatus.NOT_FOUND if there is an error retrieving the status or if the status is not found.
-
wol
public void wol()Wakes up the specified machine by calling the "wol" method on all registeredungültiges @link
MachineExtensionPoint
Machines
object. -
restart
public void restart()Restarts the machine. This method is used to restart the machine by executing the restart action for the given Machines object.- Löst aus:
RuntimeException
- if there is an error during the restart process
-
stop
public void stop()Stops the machine. This method stops the machine by executing the stop action for the given Machines object.- Löst aus:
RuntimeException
- if there is an error during the stop process
-
getLog
Retrieves the log for the current Machines object.- Gibt zurück:
- The log as a String.
-