Klasse Machines

java.lang.Object
de.bytestore.hostinger.entity.hosting.Machines

@Entity(name="host_Machines") public class Machines extends Object
  • Konstruktordetails

    • Machines

      public Machines()
  • Methodendetails

    • getProvider

      public String getProvider()
    • setProvider

      public void setProvider(String provider)
    • getVolumes

      public Volumes getVolumes()
    • setVolumes

      public void setVolumes(Volumes volumes)
    • getHostnames

      public List<Hostnames> getHostnames()
    • setHostnames

      public void setHostnames(List<Hostnames> hostnames)
    • getMemoryUnit

      public MemoryUnit getMemoryUnit()
    • setMemoryUnit

      public void setMemoryUnit(MemoryUnit memoryUnit)
    • getMemory

      public Integer getMemory()
    • setMemory

      public void setMemory(Integer memory)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCores

      public Integer getCores()
    • setCores

      public void setCores(Integer cores)
    • getLastModifiedDate

      public OffsetDateTime getLastModifiedDate()
    • setLastModifiedDate

      public void setLastModifiedDate(OffsetDateTime lastModifiedDate)
    • getLastModifiedBy

      public String getLastModifiedBy()
    • setLastModifiedBy

      public void setLastModifiedBy(String lastModifiedBy)
    • getCreatedDate

      public OffsetDateTime getCreatedDate()
    • setCreatedDate

      public void setCreatedDate(OffsetDateTime createdDate)
    • getCreatedBy

      public String getCreatedBy()
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • getId

      public Integer getId()
    • setId

      public void setId(Integer id)
    • getProcessConfig

      public ProcessExtensionConfig 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

      public ProcessStats 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

      public VNCSession vnc()
      Retrieves the VNC session for the current Machines object.
      Gibt zurück:
      The VNCSession object representing the VNC session configuration.
    • getConfig

      public MachineExtensionConfig 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

      public ProcessStatus 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 registered
      ungültiges @link
      MachineExtensionPoint
      instances that match the provider of the given Machines object.
      Parameter:
      machinesIO - the Machines object representing the machine to wake up
      Löst aus:
      Exception - if there is an error during the wake-on-LAN process
    • 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

      public String getLog()
      Retrieves the log for the current Machines object.
      Gibt zurück:
      The log as a String.