public class DefaultPipelineLauncher extends AbstractPipelineLauncher
PipelineLauncher
interface.Modifier and Type | Class and Description |
---|---|
static class |
DefaultPipelineLauncher.Builder
Builder for
DefaultPipelineLauncher . |
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
client, launchedJobs, LEGACY_RUNNER, PARAM_JOB_ID, PARAM_JOB_TYPE, PARAM_RUNNER, RUNNER_V2
Modifier and Type | Method and Description |
---|---|
static DefaultPipelineLauncher.Builder |
builder(com.google.auth.Credentials credentials) |
Job |
cancelJob(java.lang.String project,
java.lang.String region,
java.lang.String jobId) |
Job |
drainJob(java.lang.String project,
java.lang.String region,
java.lang.String jobId) |
java.lang.Long |
getBeamMetric(java.lang.String jobId,
IOLoadTestBase.PipelineMetricsType metricType,
java.lang.String metricName)
Pull Beam pipeline defined metrics given the jobId.
|
Job |
getJob(java.lang.String project,
java.lang.String region,
java.lang.String jobId) |
protected org.apache.beam.it.common.PipelineLauncher.LaunchInfo.Builder |
getJobInfoBuilder(org.apache.beam.it.common.PipelineLauncher.LaunchConfig options,
org.apache.beam.it.common.PipelineLauncher.JobState state,
Job job)
Creates a JobInfo builder object from the provided parameters, enable derived class to add info
incrementally.
|
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) |
cleanupAll, getJob, getJobInfo, handleJobState, listMessages, printJobResponse, waitUntilActive
public static DefaultPipelineLauncher.Builder builder(com.google.auth.Credentials credentials)
public org.apache.beam.it.common.PipelineLauncher.JobState getJobStatus(java.lang.String project, java.lang.String region, java.lang.String jobId) throws java.io.IOException
getJobStatus
in interface org.apache.beam.it.common.PipelineLauncher
getJobStatus
in class AbstractPipelineLauncher
java.io.IOException
public Job cancelJob(java.lang.String project, java.lang.String region, java.lang.String jobId)
cancelJob
in interface org.apache.beam.it.common.PipelineLauncher
cancelJob
in class AbstractPipelineLauncher
public Job getJob(java.lang.String project, java.lang.String region, java.lang.String jobId) throws java.io.IOException
getJob
in interface org.apache.beam.it.common.PipelineLauncher
getJob
in class AbstractPipelineLauncher
java.io.IOException
public Job drainJob(java.lang.String project, java.lang.String region, java.lang.String jobId)
drainJob
in interface org.apache.beam.it.common.PipelineLauncher
drainJob
in class AbstractPipelineLauncher
public java.lang.Long getBeamMetric(java.lang.String jobId, IOLoadTestBase.PipelineMetricsType metricType, java.lang.String metricName)
public java.lang.Double getMetric(java.lang.String project, java.lang.String region, java.lang.String jobId, java.lang.String metricName) throws java.io.IOException
getMetric
in interface org.apache.beam.it.common.PipelineLauncher
getMetric
in class AbstractPipelineLauncher
java.io.IOException
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
getMetrics
in class AbstractPipelineLauncher
java.io.IOException
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
java.io.IOException
protected org.apache.beam.it.common.PipelineLauncher.LaunchInfo.Builder getJobInfoBuilder(org.apache.beam.it.common.PipelineLauncher.LaunchConfig options, org.apache.beam.it.common.PipelineLauncher.JobState state, Job job)
AbstractPipelineLauncher
getJobInfoBuilder
in class AbstractPipelineLauncher