public static enum MySqlConnectorConfig.SnapshotMode extends Enum<MySqlConnectorConfig.SnapshotMode> implements EnumeratedValue
| Enum Constant and Description |
|---|
INITIAL
Perform a snapshot only upon initial startup of a connector.
|
INITIAL_ONLY
Perform a snapshot and then stop before attempting to read the binlog.
|
NEVER
Never perform a snapshot and only read the binlog.
|
SCHEMA_ONLY
Perform a snapshot of only the database schemas (without data) and then begin reading the binlog.
|
SCHEMA_ONLY_RECOVERY
Perform a snapshot of only the database schemas (without data) and then begin reading the binlog at the current binlog position.
|
WHEN_NEEDED
Perform a snapshot when it is needed.
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
includeData |
private boolean |
includeSchema |
private boolean |
shouldSnapshotOnDataError |
private boolean |
shouldSnapshotOnSchemaError |
private boolean |
shouldStream |
private String |
value |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
boolean |
includeData()
Whether this snapshotting mode should include the actual data or just the
schema of captured tables.
|
boolean |
includeSchema()
Whether this snapshotting mode should include the schema.
|
static MySqlConnectorConfig.SnapshotMode |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static MySqlConnectorConfig.SnapshotMode |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
boolean |
shouldSnapshot()
Whether the snapshot should be executed.
|
boolean |
shouldSnapshotOnDataError()
Whether the snapshot should be re-executed when there is a gap in data stream.
|
boolean |
shouldSnapshotOnSchemaError()
Whether the schema can be recovered if database history is corrupted.
|
boolean |
shouldStream()
Whether the snapshot mode is followed by streaming.
|
static MySqlConnectorConfig.SnapshotMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MySqlConnectorConfig.SnapshotMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MySqlConnectorConfig.SnapshotMode WHEN_NEEDED
public static final MySqlConnectorConfig.SnapshotMode INITIAL
public static final MySqlConnectorConfig.SnapshotMode SCHEMA_ONLY
public static final MySqlConnectorConfig.SnapshotMode SCHEMA_ONLY_RECOVERY
public static final MySqlConnectorConfig.SnapshotMode NEVER
public static final MySqlConnectorConfig.SnapshotMode INITIAL_ONLY
private final String value
private final boolean includeSchema
private final boolean includeData
private final boolean shouldStream
private final boolean shouldSnapshotOnSchemaError
private final boolean shouldSnapshotOnDataError
public static MySqlConnectorConfig.SnapshotMode[] values()
for (MySqlConnectorConfig.SnapshotMode c : MySqlConnectorConfig.SnapshotMode.values()) System.out.println(c);
public static MySqlConnectorConfig.SnapshotMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
getValue in interface EnumeratedValuepublic boolean includeSchema()
public boolean includeData()
public boolean shouldStream()
public boolean shouldSnapshotOnSchemaError()
public boolean shouldSnapshotOnDataError()
public boolean shouldSnapshot()
public static MySqlConnectorConfig.SnapshotMode parse(String value)
value - the configuration property value; may not be nullpublic static MySqlConnectorConfig.SnapshotMode parse(String value, String defaultValue)
value - the configuration property value; may not be nulldefaultValue - the default value; may be nullCopyright © 2021 JBoss by Red Hat. All rights reserved.