public class SparkExecutionClient extends Object
SparkExecutionService
.Constructor and Description |
---|
SparkExecutionClient(URI executionServiceBaseURI,
co.cask.cdap.proto.id.ProgramRunId programRunId) |
Modifier and Type | Method and Description |
---|---|
void |
completed(BasicWorkflowToken workflowToken)
Sends a execution completed request to the execution service.
|
SparkCommand |
heartbeat(BasicWorkflowToken workflowToken)
Sends a heartbeat request to the execution service.
|
void |
writeCredentials(Location location)
Sends a write credentials request to the execution service.
|
public SparkExecutionClient(URI executionServiceBaseURI, co.cask.cdap.proto.id.ProgramRunId programRunId)
@Nullable public SparkCommand heartbeat(@Nullable BasicWorkflowToken workflowToken) throws Exception
workflowToken
- the BasicWorkflowToken
to send in the heartbeat request if it is not null
.
only changes made by this Spark program will be sent.SparkCommand
returned by the service or null
if there is no command.Exception
public void completed(@Nullable BasicWorkflowToken workflowToken) throws Exception
workflowToken
- the BasicWorkflowToken
to send in the heartbeat request if it is not null
.
only changes made by this Spark program will be sent.Exception
Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.