Klasse Process
java.lang.Object
de.bytestore.hostinger.entity.hosting.Process
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidattach(ProcessConsole consoleIO) Attaches a ProcessConsole object to the process.voidExecutes a command with the given input/output.getCores()getId()getImage()Retrieves the install script for the process.Retrieves the logRetrieves the memory unit of the process.getName()getOwner()getPorts()getStart()Retrieves the start script for the process.getStats()Retrieves the statistics of the process.Returns the status of the process.getSwap()Retrieves the SwapUnit of the process.Retrieves the update script for the process.voidrestart()voidsetAutostart(Boolean autostart) voidsetBlockIOProportion(Integer blockIOProportion) voidvoidsetCpuPinning(String cpuPinning) voidsetCreatedBy(User createdBy) voidsetCreatedDate(OffsetDateTime createdDate) voidvoidsetHostnames(List<Hostnames> hostnames) voidvoidvoidsetLastModifiedBy(String lastModifiedBy) voidsetLastModifiedDate(OffsetDateTime lastModifiedDate) voidsetMachine(Machines machine) voidvoidsetMemoryUnit(MemoryUnit memoryUnit) voidvoidsetOomKiller(Boolean oomKiller) voidvoidsetPorts(List<PortBinding> ports) voidvoidsetSwapUnit(SwapUnit swapUnit) voidsetVolumes(List<Volumes> volumes) voidstart()Starts the process.voidstop()Stops the process.
-
Konstruktordetails
-
Process
public Process()
-
-
Methodendetails
-
getName
-
setName
-
getCustom
-
setCustom
-
setVolumes
-
getVolumes
-
setPorts
-
getPorts
-
setHostnames
-
getHostnames
-
setSwapUnit
-
getCpuPinning
-
setCpuPinning
-
getMachine
-
setMachine
-
getBlockIOProportion
-
setBlockIOProportion
-
getSwap
-
setSwap
-
getOomKiller
-
setOomKiller
-
setMemoryUnit
-
getAutostart
-
setAutostart
-
getCores
-
setCores
-
getMemory
-
setMemory
-
getImage
-
setImage
-
getOwner
-
setOwner
-
getCreatedBy
-
setCreatedBy
-
getLastModifiedDate
-
setLastModifiedDate
-
getLastModifiedBy
-
setLastModifiedBy
-
getCreatedDate
-
setCreatedDate
-
getId
-
setId
-
getStatus
Returns the status of the process.- Gibt zurück:
- the status of the process
- Löst aus:
Exception
-
execute
Executes a command with the given input/output.- Parameter:
commandIO- the command to be executed along with its input/output
-
start
Starts the process.- Löst aus:
Exception- if an error occurs while starting the process
-
stop
Stops the process.- Löst aus:
Exception- if an error occurs while stopping the process
-
getInstall
Retrieves the install script for the process.- Gibt zurück:
- the install script with placeholders replaced
-
getUpdate
Retrieves the update script for the process.- Gibt zurück:
- the update script with placeholders replaced
-
getStart
Retrieves the start script for the process.- Gibt zurück:
- the start script with placeholders replaced
-
getStats
Retrieves the statistics of the process.- Gibt zurück:
- the statistics of the process
-
getSwapUnit
Retrieves the SwapUnit of the process.- Gibt zurück:
- the SwapUnit of the process
-
getMemoryUnit
Retrieves the memory unit of the process.- Gibt zurück:
- the memory unit of the process
-
getLogback
Retrieves the log -
attach
Attaches a ProcessConsole object to the process.- Parameter:
consoleIO- the ProcessConsole object to be attached
-
restart
public void restart()
-