public class DataGenerator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DataGenerator.AutoscalingAlgorithmType
Enum representing Autoscaling algorithm types.
|
static class |
DataGenerator.Builder
Builder for the
DataGenerator . |
Modifier and Type | Method and Description |
---|---|
static DataGenerator.Builder |
builderWithSchemaLocation(java.lang.String testName,
java.lang.String schemaLocation) |
static DataGenerator.Builder |
builderWithSchemaTemplate(java.lang.String testName,
java.lang.String schemaTemplate) |
java.lang.Integer |
execute(java.time.Duration timeout)
Executes the data generator using the config provided.
|
public static DataGenerator.Builder builderWithSchemaLocation(java.lang.String testName, java.lang.String schemaLocation)
public static DataGenerator.Builder builderWithSchemaTemplate(java.lang.String testName, java.lang.String schemaTemplate)
public java.lang.Integer execute(java.time.Duration timeout) throws java.io.IOException
Note: This is a blocking call. For backlog tests, start the Data generator before executing the template under test. For testing a pipeline against live incoming data, execute the data generator after starting the pipeline under test.
timeout
- time to wait before cancelling the data generator.java.io.IOException
- if any errors are encountered.