javaapi

package
v0.0.0-...-707febc Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package javaapi provides Java interface for orchestration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrchestrationInit

func OrchestrationInit(executeCallback ExecuteCallback) (errCode int)

OrchestrationInit runs orchestration service and discovers remote orchestration services

func PrintLog

func PrintLog(cMsg string) (count int)

PrintLog provides logging interface

Types

type ExecuteCallback

type ExecuteCallback interface {
	androidexecutor.ExecuteCallback
}

ExecuteCallback is required to launch application in java layer

type ReqeustService

type ReqeustService struct {
	ServiceName      string
	SelfSelection    bool
	ServiceRequester string
	ServiceInfo      []RequestServiceInfo
}

func (ReqeustService) GetExecutionCommand

func (r ReqeustService) GetExecutionCommand(execType string) string

func (*ReqeustService) SetExecutionCommand

func (r *ReqeustService) SetExecutionCommand(execType string, command string)

type RequestServiceInfo

type RequestServiceInfo struct {
	ExecutionType string
	ExeCmd        []string
}

type ResponseService

type ResponseService struct {
	Message          string
	ServiceName      string
	RemoteTargetInfo *TargetInfo
}

func OrchestrationRequestService

func OrchestrationRequestService(request *ReqeustService) *ResponseService

OrchestrationRequestService performs request from service applications which uses orchestration service

func (ResponseService) GetExecutedType

func (r ResponseService) GetExecutedType() string

func (ResponseService) GetTarget

func (r ResponseService) GetTarget() string

type TargetInfo

type TargetInfo struct {
	ExecutionType string
	Target        string
}

Jump to

Keyboard shortcuts

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