Documentation ¶
Index ¶
- Constants
- func CheckoutTokenByJobId(jobid string) (token string, err error)
- func CheckoutWorkunitRemote() (workunit *core.Workunit, err error)
- func CleanDisk() (err error)
- func ComposeProfile() (profile *core.Client, err error)
- func DiscardWorkunit(id string) (err error)
- func FetchDataTokenByWorkId(workid string) (token string, err error)
- func InitWorkers(client *core.Client) (err error)
- func ParseWorkunitArgs(work *core.Workunit) (args []string, err error)
- func ReRegisterWithSelf(host string) (client *core.Client, err error)
- func RegisterWithAuth(host string, profile *core.Client) (client *core.Client, err error)
- func RegisterWithProfile(host string, profile *core.Client) (client *core.Client, err error)
- func RestartClient() (err error)
- func RunWorkunit(work *core.Workunit) (err error)
- func SendHeartBeat()
- func StartClientWorkers()
- func StartProxyWorkers()
- func StopClient() (err error)
- func SubmitWorkProxy(work *core.Workunit) (err error)
- type ClientResponse
- type HeartbeatResponse
- type TokenResponse
- type WorkResponse
Constants ¶
View Source
const ( ID_HEARTBEATER = 0 ID_WORKSTEALER = 1 ID_DATAMOVER = 2 ID_WORKER = 3 ID_DELIVERER = 4 ID_REDISTRIBUTOR = 5 )
Variables ¶
This section is empty.
Functions ¶
func CheckoutTokenByJobId ¶
func CheckoutWorkunitRemote ¶
func ComposeProfile ¶
func DiscardWorkunit ¶
func FetchDataTokenByWorkId ¶
func InitWorkers ¶
func ParseWorkunitArgs ¶
parse workunit, fetch input data, compose command arguments
func RegisterWithAuth ¶
func RegisterWithProfile ¶
func RestartClient ¶
func RestartClient() (err error)
func RunWorkunit ¶
func SendHeartBeat ¶
func SendHeartBeat()
client sends heartbeat to server to maintain active status and re-register when needed
func StartClientWorkers ¶
func StartClientWorkers()
func StartProxyWorkers ¶
func StartProxyWorkers()
func StopClient ¶
func StopClient() (err error)
func SubmitWorkProxy ¶
Types ¶
type ClientResponse ¶
type HeartbeatResponse ¶
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.