Documentation ¶
Index ¶
- Variables
- type Node
- func (n *Node) ClusterId() string
- func (n *Node) Config() *config.Profile
- func (n *Node) IsLeader() bool
- func (n *Node) IsMaster() bool
- func (n *Node) IsWorker() bool
- func (n *Node) NodeInfo() *core.NodeInfo
- func (n *Node) RegisterExecutor(taskInfo *core.TaskConfig) *core.Result
- func (n *Node) Shutdown()
- func (n *Node) Start() error
- func (n *Node) SubmitExecutor(execInfo *core.ExecutorInfo) *core.Result
- func (n *Node) SubmitStartExecutor(taskId string) *core.Result
- func (n *Node) SubmitStopExecutor(taskId string) *core.Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorCanNotSubmitToNotLeaderNode = errors.New("can not submit to not leader node") ErrorStopTheWorld = errors.New("node is stop the world") )
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { NodeId string NodeName string Status int Cluster *cluster.Cluster Registry *registry.Registry Runtime *runtime.Runtime // contains filtered or unexported fields }
func (*Node) RegisterExecutor ¶
func (n *Node) RegisterExecutor(taskInfo *core.TaskConfig) *core.Result
RegisterExecutor
func (*Node) SubmitExecutor ¶
func (n *Node) SubmitExecutor(execInfo *core.ExecutorInfo) *core.Result
SubmitExecutor
func (*Node) SubmitStartExecutor ¶
SubmitStartExecutor
Click to show internal directories.
Click to hide internal directories.