Documentation ¶
Index ¶
- Constants
- type Runtime
- func (r *Runtime) CreateExecutor(taskInfo *core.TaskConfig) (executor.Executor, error)
- func (r *Runtime) GetTaskIDs() []string
- func (r *Runtime) QueryAllExecutorConfig() map[string]core.TaskConfig
- func (r *Runtime) RemoveExecutor(taskId string) error
- func (r *Runtime) Start() error
- func (r *Runtime) StartExecutor(taskId string) error
- func (r *Runtime) Stop() error
- func (r *Runtime) StopExecutor(taskId string) error
Constants ¶
View Source
const ( RuntimeStatus_Init = 0 RuntimeStatus_Run = 1 RuntimeStatus_Stop = 2 TaskHeader_StartTime = "Rockman.Runtime.StartTime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct { TaskService *task.TaskService Executors map[string]executor.Executor Status int // contains filtered or unexported fields }
func (*Runtime) CreateExecutor ¶
CreateExecutor create new executor and register to task service now support http\shell\go.so
func (*Runtime) GetTaskIDs ¶
func (*Runtime) QueryAllExecutorConfig ¶
func (r *Runtime) QueryAllExecutorConfig() map[string]core.TaskConfig
func (*Runtime) RemoveExecutor ¶
func (*Runtime) StartExecutor ¶
func (*Runtime) StopExecutor ¶
Click to show internal directories.
Click to hide internal directories.