public class DirectRunnerClient
extends java.lang.Object
implements org.apache.beam.it.common.PipelineLauncher
PipelineLauncher
interface which invokes the template class using
DirectRunner, and manages the state in memory.Modifier and Type | Class and Description |
---|---|
static class |
DirectRunnerClient.Builder
Builder for
DirectRunnerClient . |
org.apache.beam.it.common.PipelineLauncher.JobState, org.apache.beam.it.common.PipelineLauncher.LaunchConfig, org.apache.beam.it.common.PipelineLauncher.LaunchInfo, org.apache.beam.it.common.PipelineLauncher.Sdk
Modifier and Type | Method and Description |
---|---|
static DirectRunnerClient.Builder |
builder(java.lang.Class<?> mainClass) |
Job |
cancelJob(java.lang.String project,
java.lang.String region,
java.lang.String jobId) |
void |
cleanupAll() |
Job |
drainJob(java.lang.String project,
java.lang.String region,
java.lang.String jobId) |
Job |
getJob(java.lang.String project,
java.lang.String region,
java.lang.String jobId) |
Job |
getJob(java.lang.String project,
java.lang.String region,
java.lang.String jobId,
java.lang.String jobView) |
org.apache.beam.it.common.PipelineLauncher.JobState |
getJobStatus(java.lang.String project,
java.lang.String region,
java.lang.String jobId) |
java.lang.Double |
getMetric(java.lang.String project,
java.lang.String region,
java.lang.String jobId,
java.lang.String metricName) |
java.util.Map<java.lang.String,java.lang.Double> |
getMetrics(java.lang.String project,
java.lang.String region,
java.lang.String jobId) |
org.apache.beam.it.common.PipelineLauncher.LaunchInfo |
launch(java.lang.String project,
java.lang.String region,
org.apache.beam.it.common.PipelineLauncher.LaunchConfig options) |
java.util.List<JobMessage> |
listMessages(java.lang.String project,
java.lang.String region,
java.lang.String jobId,
java.lang.String minimumImportance) |
public static DirectRunnerClient.Builder builder(java.lang.Class<?> mainClass)
public org.apache.beam.it.common.PipelineLauncher.LaunchInfo launch(java.lang.String project, java.lang.String region, org.apache.beam.it.common.PipelineLauncher.LaunchConfig options) throws java.io.IOException
launch
in interface org.apache.beam.it.common.PipelineLauncher
java.io.IOException
public Job getJob(java.lang.String project, java.lang.String region, java.lang.String jobId)
getJob
in interface org.apache.beam.it.common.PipelineLauncher
public Job getJob(java.lang.String project, java.lang.String region, java.lang.String jobId, java.lang.String jobView)
getJob
in interface org.apache.beam.it.common.PipelineLauncher
public org.apache.beam.it.common.PipelineLauncher.JobState getJobStatus(java.lang.String project, java.lang.String region, java.lang.String jobId)
getJobStatus
in interface org.apache.beam.it.common.PipelineLauncher
public java.util.List<JobMessage> listMessages(java.lang.String project, java.lang.String region, java.lang.String jobId, java.lang.String minimumImportance)
listMessages
in interface org.apache.beam.it.common.PipelineLauncher
public Job cancelJob(java.lang.String project, java.lang.String region, java.lang.String jobId)
cancelJob
in interface org.apache.beam.it.common.PipelineLauncher
public Job drainJob(java.lang.String project, java.lang.String region, java.lang.String jobId)
drainJob
in interface org.apache.beam.it.common.PipelineLauncher
public java.lang.Double getMetric(java.lang.String project, java.lang.String region, java.lang.String jobId, java.lang.String metricName)
getMetric
in interface org.apache.beam.it.common.PipelineLauncher
public java.util.Map<java.lang.String,java.lang.Double> getMetrics(java.lang.String project, java.lang.String region, java.lang.String jobId) throws java.io.IOException
getMetrics
in interface org.apache.beam.it.common.PipelineLauncher
java.io.IOException
public void cleanupAll() throws java.io.IOException
cleanupAll
in interface org.apache.beam.it.common.PipelineLauncher
java.io.IOException