Klasse Process

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

@Entity(name="host_Process") public class Process extends Object
  • Konstruktordetails

    • Process

      public Process()
  • Methodendetails

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCustom

      public String getCustom()
    • setCustom

      public void setCustom(String custom)
    • setVolumes

      public void setVolumes(List<Volumes> volumes)
    • getVolumes

      public List<Volumes> getVolumes()
    • setPorts

      public void setPorts(List<PortBinding> ports)
    • getPorts

      public List<PortBinding> getPorts()
    • setHostnames

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

      public List<Hostnames> getHostnames()
    • setSwapUnit

      public void setSwapUnit(SwapUnit swapUnit)
    • getCpuPinning

      public String getCpuPinning()
    • setCpuPinning

      public void setCpuPinning(String cpuPinning)
    • getMachine

      public Machines getMachine()
    • setMachine

      public void setMachine(Machines machine)
    • getBlockIOProportion

      public Integer getBlockIOProportion()
    • setBlockIOProportion

      public void setBlockIOProportion(Integer blockIOProportion)
    • getSwap

      public Integer getSwap()
    • setSwap

      public void setSwap(Integer swap)
    • getOomKiller

      public Boolean getOomKiller()
    • setOomKiller

      public void setOomKiller(Boolean oomKiller)
    • setMemoryUnit

      public void setMemoryUnit(MemoryUnit memoryUnit)
    • getAutostart

      public Boolean getAutostart()
    • setAutostart

      public void setAutostart(Boolean autostart)
    • getCores

      public Integer getCores()
    • setCores

      public void setCores(Integer cores)
    • getMemory

      public Integer getMemory()
    • setMemory

      public void setMemory(Integer memory)
    • getImage

      public Images getImage()
    • setImage

      public void setImage(Images image)
    • getOwner

      public User getOwner()
    • setOwner

      public void setOwner(User owner)
    • getCreatedBy

      public User getCreatedBy()
    • setCreatedBy

      public void setCreatedBy(User createdBy)
    • 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)
    • getId

      public Integer getId()
    • setId

      public void setId(Integer id)
    • getStatus

      public ProcessStatus getStatus() throws Exception
      Returns the status of the process.
      Gibt zurück:
      the status of the process
      Löst aus:
      Exception
    • execute

      public void execute(String commandIO)
      Executes a command with the given input/output.
      Parameter:
      commandIO - the command to be executed along with its input/output
    • start

      public void start() throws Exception
      Starts the process.
      Löst aus:
      Exception - if an error occurs while starting the process
    • stop

      public void stop() throws Exception
      Stops the process.
      Löst aus:
      Exception - if an error occurs while stopping the process
    • getInstall

      public String getInstall()
      Retrieves the install script for the process.
      Gibt zurück:
      the install script with placeholders replaced
    • getUpdate

      public String getUpdate()
      Retrieves the update script for the process.
      Gibt zurück:
      the update script with placeholders replaced
    • getStart

      public String getStart()
      Retrieves the start script for the process.
      Gibt zurück:
      the start script with placeholders replaced
    • getStats

      public ProcessStats getStats()
      Retrieves the statistics of the process.
      Gibt zurück:
      the statistics of the process
    • getSwapUnit

      public SwapUnit getSwapUnit()
      Retrieves the SwapUnit of the process.
      Gibt zurück:
      the SwapUnit of the process
    • getMemoryUnit

      public MemoryUnit getMemoryUnit()
      Retrieves the memory unit of the process.
      Gibt zurück:
      the memory unit of the process
    • getLogback

      public String getLogback()
      Retrieves the log
    • attach

      public void attach(ProcessConsole consoleIO)
      Attaches a ProcessConsole object to the process.
      Parameter:
      consoleIO - the ProcessConsole object to be attached
    • restart

      public void restart()