service

package
v0.0.0-...-ceb1bbd Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FLINK      = "flink"
	SHELL      = "sh"
	Quote      = "$qc$"
	UDFQuote   = Quote + "_udf_name_" + Quote
	JobManager = "job_manager"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FlinkExecutor

type FlinkExecutor struct {
	// contains filtered or unexported fields
}

func NewFlinkExecutor

func NewFlinkExecutor(ctx context.Context, db *gorm.DB, engineClient utils.ClusterManagerClient, udfClient utils.UdfClient, resourceClient utils.ResourceClient,
	flinkClient *flink.Client, zeppelinClient *zeppelin.Client) *FlinkExecutor

func (*FlinkExecutor) CancelJob

func (exec *FlinkExecutor) CancelJob(ctx context.Context, flinkId string, spaceId string, clusterId string) error

func (*FlinkExecutor) GetJobInfo

func (exec *FlinkExecutor) GetJobInfo(ctx context.Context, flinkId string, spaceId string, clusterId string) (*flink.Job, error)

func (*FlinkExecutor) InitJob

func (exec *FlinkExecutor) InitJob(ctx context.Context, req *pbrequest.InitFlinkJob) (string, string, error)

func (*FlinkExecutor) Release

func (exec *FlinkExecutor) Release(ctx context.Context, instanceId string, noteId string) error

func (*FlinkExecutor) SubmitJob

func (exec *FlinkExecutor) SubmitJob(ctx context.Context, instanceId string, noteId string, paragraphId string, jobType pbmodel.StreamJob_Type) (*zeppelin.ParagraphResult, error)

func (*FlinkExecutor) ValidateCode

func (exec *FlinkExecutor) ValidateCode(ctx context.Context, jobCode *pbrequest.ValidateFlinkJob) (bool, string, error)

type JobManagerService

type JobManagerService struct {
	// contains filtered or unexported fields
}

func NewJobManagerService

func NewJobManagerService(ctx context.Context, db *gorm.DB, uClient utils.UdfClient, eClient utils.ClusterManagerClient,
	rClient utils.ResourceClient, fClient *flink.Client,
	zClient *zeppelin.Client, etcdClient *getcd.Client) *JobManagerService

func (*JobManagerService) CancelFlinkJob

func (jm *JobManagerService) CancelFlinkJob(ctx context.Context, flinkId string, spaceId string, clusterId string) error

func (*JobManagerService) FreeFlinkJob

func (jm *JobManagerService) FreeFlinkJob(ctx context.Context, instanceId string, noteId string) error

func (*JobManagerService) GetFlinkJob

func (jm *JobManagerService) GetFlinkJob(ctx context.Context, flinkId string, spaceId string, clusterId string) (*pbresponse.GetFlinkJob, error)

func (*JobManagerService) InitFlinkJob

func (*JobManagerService) SubmitFlinkJob

func (*JobManagerService) ValidateFlinkCode

type Udf

type Udf struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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