runtime

package
v0.0.0-...-25da3cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 NewRuntime

func NewRuntime(nodeInfo *core.NodeInfo, profile *config.Profile) *Runtime

func (*Runtime) CreateExecutor

func (r *Runtime) CreateExecutor(taskInfo *core.TaskConfig) (executor.Executor, error)

CreateExecutor create new executor and register to task service now support http\shell\go.so

func (*Runtime) GetTaskIDs

func (r *Runtime) GetTaskIDs() []string

func (*Runtime) QueryAllExecutorConfig

func (r *Runtime) QueryAllExecutorConfig() map[string]core.TaskConfig

func (*Runtime) RemoveExecutor

func (r *Runtime) RemoveExecutor(taskId string) error

func (*Runtime) Start

func (r *Runtime) Start() error

func (*Runtime) StartExecutor

func (r *Runtime) StartExecutor(taskId string) error

func (*Runtime) Stop

func (r *Runtime) Stop() error

func (*Runtime) StopExecutor

func (r *Runtime) StopExecutor(taskId string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL