/** * Sets connection properties to be used during REST communication to Elasticsearch. * * <p>Sets the maximum timeout (in milliseconds) in case of multiple retries of the same request. * * @param maxRetryTimeout maximum timeout (in milliseconds) */ public Elasticsearch connectionMaxRetryTimeout(int maxRetryTimeout) { internalProperties.putInt(CONNECTOR_CONNECTION_MAX_RETRY_TIMEOUT, maxRetryTimeout); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the maximum number of actions to buffer for each bulk request. * * @param maxActions the maximum number of actions to buffer per bulk request. */ public Elasticsearch bulkFlushMaxActions(int maxActions) { internalProperties.putInt(CONNECTOR_BULK_FLUSH_MAX_ACTIONS, maxActions); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the maximum number of retries for a backoff attempt when flushing bulk requests. * * <p>Make sure to enable backoff by selecting a strategy ({@link #bulkFlushBackoffConstant()} or * {@link #bulkFlushBackoffExponential()}). * * @param maxRetries the maximum number of retries. */ public Elasticsearch bulkFlushBackoffMaxRetries(int maxRetries) { internalProperties.putInt(CONNECTOR_BULK_FLUSH_BACKOFF_MAX_RETRIES, maxRetries); return this; }
@Override public final Map<String, String> toProperties() { final DescriptorProperties properties = new DescriptorProperties(); properties.putString(FormatDescriptorValidator.FORMAT_TYPE, type); properties.putInt(FormatDescriptorValidator.FORMAT_PROPERTY_VERSION, version); properties.putProperties(toFormatProperties()); return properties.asMap(); }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the maximum number of actions to buffer for each bulk request. * * @param maxActions the maximum number of actions to buffer per bulk request. */ public Elasticsearch bulkFlushMaxActions(int maxActions) { internalProperties.putInt(CONNECTOR_BULK_FLUSH_MAX_ACTIONS, maxActions); return this; }
/** * Sets connection properties to be used during REST communication to Elasticsearch. * * <p>Sets the maximum timeout (in milliseconds) in case of multiple retries of the same request. * * @param maxRetryTimeout maximum timeout (in milliseconds) */ public Elasticsearch connectionMaxRetryTimeout(int maxRetryTimeout) { internalProperties.putInt(CONNECTOR_CONNECTION_MAX_RETRY_TIMEOUT, maxRetryTimeout); return this; }
/** * Sets connection properties to be used during REST communication to Elasticsearch. * * <p>Sets the maximum timeout (in milliseconds) in case of multiple retries of the same request. * * @param maxRetryTimeout maximum timeout (in milliseconds) */ public Elasticsearch connectionMaxRetryTimeout(int maxRetryTimeout) { internalProperties.putInt(CONNECTOR_CONNECTION_MAX_RETRY_TIMEOUT, maxRetryTimeout); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the maximum number of actions to buffer for each bulk request. * * @param maxActions the maximum number of actions to buffer per bulk request. */ public Elasticsearch bulkFlushMaxActions(int maxActions) { internalProperties.putInt(CONNECTOR_BULK_FLUSH_MAX_ACTIONS, maxActions); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the maximum number of retries for a backoff attempt when flushing bulk requests. * * <p>Make sure to enable backoff by selecting a strategy ({@link #bulkFlushBackoffConstant()} or * {@link #bulkFlushBackoffExponential()}). * * @param maxRetries the maximum number of retries. */ public Elasticsearch bulkFlushBackoffMaxRetries(int maxRetries) { internalProperties.putInt(CONNECTOR_BULK_FLUSH_BACKOFF_MAX_RETRIES, maxRetries); return this; }
/** * Configures how to buffer elements before sending them in bulk to the cluster for efficiency. * * <p>Sets the maximum number of retries for a backoff attempt when flushing bulk requests. * * <p>Make sure to enable backoff by selecting a strategy ({@link #bulkFlushBackoffConstant()} or * {@link #bulkFlushBackoffExponential()}). * * @param maxRetries the maximum number of retries. */ public Elasticsearch bulkFlushBackoffMaxRetries(int maxRetries) { internalProperties.putInt(CONNECTOR_BULK_FLUSH_BACKOFF_MAX_RETRIES, maxRetries); return this; }
@Override protected Map<String, String> toConnectorProperties() { DescriptorProperties properties = new DescriptorProperties(); if (this.path != null) { properties.putString(CONNECTOR_PATH, this.path); } if (this.maxEventDelaySecs != null) { properties.putInt(CONNECTOR_MAX_EVENT_DELAY_SECS, this.maxEventDelaySecs); } if (this.servingSpeedFactor != null) { properties.putInt(CONNECTOR_SERVING_SPEED_FACTOR, this.servingSpeedFactor); } return properties.asMap(); } }
@Override protected Map<String, String> toConnectorProperties() { DescriptorProperties properties = new DescriptorProperties(); if (this.path != null) { properties.putString(CONNECTOR_PATH, this.path); } if (this.maxEventDelaySecs != null) { properties.putInt(CONNECTOR_MAX_EVENT_DELAY_SECS, this.maxEventDelaySecs); } if (this.servingSpeedFactor != null) { properties.putInt(CONNECTOR_SERVING_SPEED_FACTOR, this.servingSpeedFactor); } return properties.asMap(); } }
@Override public final Map<String, String> toProperties() { final DescriptorProperties properties = new DescriptorProperties(); properties.putString(FormatDescriptorValidator.FORMAT_TYPE, type); properties.putInt(FormatDescriptorValidator.FORMAT_PROPERTY_VERSION, version); properties.putProperties(toFormatProperties()); return properties.asMap(); }
@Override public final Map<String, String> toProperties() { final DescriptorProperties properties = new DescriptorProperties(); properties.putString(FormatDescriptorValidator.FORMAT_TYPE, type); properties.putInt(FormatDescriptorValidator.FORMAT_PROPERTY_VERSION, version); properties.putProperties(toFormatProperties()); return properties.asMap(); }