public class FailureTarget extends Object implements io.cdap.delta.api.DeltaTarget
| Modifier and Type | Field and Description |
|---|---|
static PluginClass |
PLUGIN_CLASS |
| Constructor and Description |
|---|
FailureTarget(io.cdap.delta.test.mock.FailureTarget.Conf conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(io.cdap.delta.api.Configurer configurer) |
io.cdap.delta.api.EventConsumer |
createConsumer(io.cdap.delta.api.DeltaTargetContext context) |
io.cdap.delta.api.assessment.TableAssessor<io.cdap.delta.api.assessment.StandardizedTableDetail> |
createTableAssessor(io.cdap.delta.api.Configurer configurer) |
static io.cdap.delta.proto.Plugin |
failAfter(long sequenceNumThreshold,
File proceedFile)
Get the plugin configuration for a mock target that should fail after it sees an event with a sequence number
greater than the given threshold.
|
static io.cdap.delta.proto.Plugin |
failImmediately(long sequenceNumThreshold)
Get the plugin configuration for a mock target that should cause the pipeline to fail immediately without retries
when it sees an event with a sequence number greater than the given threshold.
|
public static final PluginClass PLUGIN_CLASS
public FailureTarget(io.cdap.delta.test.mock.FailureTarget.Conf conf)
public void configure(io.cdap.delta.api.Configurer configurer)
configure in interface io.cdap.delta.api.DeltaTargetpublic io.cdap.delta.api.EventConsumer createConsumer(io.cdap.delta.api.DeltaTargetContext context)
createConsumer in interface io.cdap.delta.api.DeltaTargetpublic io.cdap.delta.api.assessment.TableAssessor<io.cdap.delta.api.assessment.StandardizedTableDetail> createTableAssessor(io.cdap.delta.api.Configurer configurer)
createTableAssessor in interface io.cdap.delta.api.assessment.TableAssessorSupplier<io.cdap.delta.api.assessment.StandardizedTableDetail>public static io.cdap.delta.proto.Plugin failAfter(long sequenceNumThreshold,
File proceedFile)
sequenceNumThreshold - throw an exception if the sequence number is greater than this valueproceedFile - stop throwing exceptions when the file existspublic static io.cdap.delta.proto.Plugin failImmediately(long sequenceNumThreshold)
sequenceNumThreshold - immediately fail the pipeline if the sequence number is greater than this valueCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.