private void validateVersion(DescriptorProperties properties) { properties.validateEnumValues( CONNECTOR_VERSION, false, Collections.singletonList(CONNECTOR_VERSION_VALUE_6)); }
@Override protected void validate(DescriptorProperties properties) { properties.validateEnumValues( EXECUTION_TYPE, true, EXECUTION_TYPE_VALUE_BATCH, EXECUTION_TYPE_VALUE_STREAMING)); properties.validateEnumValues( EXECUTION_TIME_CHARACTERISTIC, true, properties.validateInt(EXECUTION_MAX_PARALLELISM, true, 1); properties.validateInt(EXECUTION_MAX_TABLE_RESULT_ROWS, true, 1); properties.validateEnumValues( EXECUTION_RESTART_STRATEGY_TYPE, true,
private void validateBulkFlush(DescriptorProperties properties) { properties.validateBoolean(CONNECTOR_FLUSH_ON_CHECKPOINT, true); properties.validateInt(CONNECTOR_BULK_FLUSH_MAX_ACTIONS, true, 1); properties.validateMemorySize(CONNECTOR_BULK_FLUSH_MAX_SIZE, true, 1024 * 1024); // only allow MB precision properties.validateLong(CONNECTOR_BULK_FLUSH_INTERVAL, true, 0); properties.validateEnumValues(CONNECTOR_BULK_FLUSH_BACKOFF_TYPE, true, Arrays.asList( CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_DISABLED, CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_CONSTANT, CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_EXPONENTIAL)); properties.validateInt(CONNECTOR_BULK_FLUSH_BACKOFF_MAX_RETRIES, true, 1); properties.validateLong(CONNECTOR_BULK_FLUSH_BACKOFF_DELAY, true, 0); }
private static TableEntry create(DescriptorProperties properties) { properties.validateString(TABLES_NAME, false, 1); properties.validateEnumValues( TABLES_TYPE, false,
private void validateVersion(DescriptorProperties properties) { properties.validateEnumValues( CONNECTOR_VERSION, false, Collections.singletonList(CONNECTOR_VERSION_VALUE_6)); }
private void validateVersion(DescriptorProperties properties) { properties.validateEnumValues( CONNECTOR_VERSION, false, Collections.singletonList(CONNECTOR_VERSION_VALUE_6)); }
private void validateBulkFlush(DescriptorProperties properties) { properties.validateBoolean(CONNECTOR_FLUSH_ON_CHECKPOINT, true); properties.validateInt(CONNECTOR_BULK_FLUSH_MAX_ACTIONS, true, 1); properties.validateMemorySize(CONNECTOR_BULK_FLUSH_MAX_SIZE, true, 1024 * 1024); // only allow MB precision properties.validateLong(CONNECTOR_BULK_FLUSH_INTERVAL, true, 0); properties.validateEnumValues(CONNECTOR_BULK_FLUSH_BACKOFF_TYPE, true, Arrays.asList( CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_DISABLED, CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_CONSTANT, CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_EXPONENTIAL)); properties.validateInt(CONNECTOR_BULK_FLUSH_BACKOFF_MAX_RETRIES, true, 1); properties.validateLong(CONNECTOR_BULK_FLUSH_BACKOFF_DELAY, true, 0); }
private void validateBulkFlush(DescriptorProperties properties) { properties.validateBoolean(CONNECTOR_FLUSH_ON_CHECKPOINT, true); properties.validateInt(CONNECTOR_BULK_FLUSH_MAX_ACTIONS, true, 1); properties.validateMemorySize(CONNECTOR_BULK_FLUSH_MAX_SIZE, true, 1024 * 1024); // only allow MB precision properties.validateLong(CONNECTOR_BULK_FLUSH_INTERVAL, true, 0); properties.validateEnumValues(CONNECTOR_BULK_FLUSH_BACKOFF_TYPE, true, Arrays.asList( CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_DISABLED, CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_CONSTANT, CONNECTOR_BULK_FLUSH_BACKOFF_TYPE_VALUE_EXPONENTIAL)); properties.validateInt(CONNECTOR_BULK_FLUSH_BACKOFF_MAX_RETRIES, true, 1); properties.validateLong(CONNECTOR_BULK_FLUSH_BACKOFF_DELAY, true, 0); }