Documentation
¶
Index ¶
Constants ¶
View Source
const (
CommandSystem = "core.system"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PIDTable ¶
type PIDTable interface {
//Register atomic registration of PID. MUST grantee that that no wait4 will happen
//on any of the child process until the register operation is done.
Register(g GetPID) error
WaitPID(pid int) *syscall.WaitStatus
}
type Process ¶
type Process interface {
Command() *core.Command
Run() (<-chan *stream.Message, error)
Kill()
GetStats() *ProcessStats
}
Process interface
type ProcessFactory ¶
func NewInternalProcessFactory ¶
func NewInternalProcessFactory(runnable Runnable) ProcessFactory
internalProcessFactory factory to build Runnable processes
type ProcessStats ¶
type ProcessStats struct {
Cmd *core.Command `json:"cmd,omitempty"`
CPU float64 `json:"cpu"`
RSS uint64 `json:"rss"`
VMS uint64 `json:"vms"`
Swap uint64 `json:"swap"`
Debug string `json:"debug,ommitempty"`
}
ProcessStats holds process cpu and memory usage
Click to show internal directories.
Click to hide internal directories.