Uses of Class
com.kosdev.kos.core.service.spawn.SpawnProcess
Packages that use SpawnProcess
Package
Description
Contains classes related to spawning processes and services.
-
Uses of SpawnProcess in com.kosdev.kos.core.service.spawn
Subclasses of SpawnProcess in com.kosdev.kos.core.service.spawnModifier and TypeClassDescriptionclassSpecializedSpawnProcessdesigned around starting adapters.Methods in com.kosdev.kos.core.service.spawn that return SpawnProcessModifier and TypeMethodDescriptionAdd a command line argument.SpawnProcess.setDaemon(boolean enable) Set if this is a daemon process.Set the group that the program should be run as.SpawnProcess.setLogFile(String logFile) Redirect stdout/stderr to the specified file name in the/mnt/logsdirectory.Set the path to the executable.Set the path to the executable.SpawnProcess.setStreaming(boolean enable) Enable I/O streaming for this process.Set the user (and group) that the program should be run as.Adapter.setWorkingDir(File dir) Adapter.setWorkingDir(String path) SpawnProcess.setWorkingDir(File dir) Set the working directory.SpawnProcess.setWorkingDir(String path) Set the working directory.Methods in com.kosdev.kos.core.service.spawn that return types with arguments of type SpawnProcessModifier and TypeMethodDescriptionSpawnService.getDaemons()Return a list of daemon processes that are currently expected to be running on the local node.SpawnService.getDaemons(NodeId nodeId) Return a list of daemon processes that are currently expected to be running on the specified node.Methods in com.kosdev.kos.core.service.spawn with parameters of type SpawnProcessModifier and TypeMethodDescriptionvoidSpawnService.addDaemon(SpawnProcess process) Add a daemon process to the local node.voidSpawnService.addDaemon(SpawnProcess process, NodeId nodeId) Add a daemon process to the specified node.voidSpawnService.addProcess(SpawnProcess process) Add a process to the spawn list of the local node.voidSpawnService.addProcess(SpawnProcess process, NodeId nodeId) Add a process to the spawn list of the specified node.voidSpawnProcessListener.onProcessExit(SpawnProcess process, int pid, SpawnProcess.ExitStatus status) Called when the process exits.voidSpawnProcessListener.onProcessStart(SpawnProcess process, int pid) Called when the process is started.voidSpawnService.removeProcess(SpawnProcess process) Remove a process from the spawn list.voidSpawnService.restartDaemon(SpawnProcess process) Restart the specified daemon process.voidSpawnService.setPriority(SpawnProcess process, int priority) Set the priority of the specified process.