public class FailureTarget extends Object implements DeltaTarget
| Modifier and Type | Field and Description |
|---|---|
static PluginClass |
PLUGIN_CLASS |
PLUGIN_TYPE| Constructor and Description |
|---|
FailureTarget(io.cdap.delta.test.mock.FailureTarget.Conf conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configurer configurer) |
EventConsumer |
createConsumer(DeltaTargetContext context) |
TableAssessor<StandardizedTableDetail> |
createTableAssessor(Configurer configurer) |
static 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 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(Configurer configurer)
configure in interface DeltaTargetpublic EventConsumer createConsumer(DeltaTargetContext context)
createConsumer in interface DeltaTargetpublic TableAssessor<StandardizedTableDetail> createTableAssessor(Configurer configurer)
createTableAssessor in interface TableAssessorSupplier<StandardizedTableDetail>public static 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 Plugin failImmediately(long sequenceNumThreshold)
sequenceNumThreshold - immediately fail the pipeline if the sequence number is greater than this valueCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.