Klasse Process
java.lang.Object
de.bytestore.hostinger.entity.hosting.Process
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
attach
(ProcessConsole consoleIO) Attaches a ProcessConsole object to the process.void
Executes 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.void
restart()
void
setAutostart
(Boolean autostart) void
setBlockIOProportion
(Integer blockIOProportion) void
void
setCpuPinning
(String cpuPinning) void
setCreatedBy
(User createdBy) void
setCreatedDate
(OffsetDateTime createdDate) void
void
setHostnames
(List<Hostnames> hostnames) void
void
void
setLastModifiedBy
(String lastModifiedBy) void
setLastModifiedDate
(OffsetDateTime lastModifiedDate) void
setMachine
(Machines machine) void
void
setMemoryUnit
(MemoryUnit memoryUnit) void
void
setOomKiller
(Boolean oomKiller) void
void
setPorts
(List<PortBinding> ports) void
void
setSwapUnit
(SwapUnit swapUnit) void
setVolumes
(List<Volumes> volumes) void
start()
Starts the process.void
stop()
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()
-