Class ElasticsearchStreamsClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchStreamsClient(ElasticsearchTransport transport) ElasticsearchStreamsClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionlogsDisable(LogsDisableRequest request) Disable a named stream.final LogsDisableResponseDisable a named stream.logsEnable(LogsEnableRequest request) Enable a named stream.final LogsEnableResponseEnable a named stream.status()Get the status of streams.status(StreamsStatusRequest request) Get the status of streams.final StreamsStatusResponseGet the status of streams.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchStreamsClient
-
ElasticsearchStreamsClient
public ElasticsearchStreamsClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchStreamsClient>
-
logsDisable
public LogsDisableResponse logsDisable(LogsDisableRequest request) throws IOException, ElasticsearchException Disable a named stream.Turn off the named stream feature for this cluster.
- Throws:
IOExceptionElasticsearchException- See Also:
-
logsDisable
public final LogsDisableResponse logsDisable(Function<LogsDisableRequest.Builder, ObjectBuilder<LogsDisableRequest>> fn) throws IOException, ElasticsearchExceptionDisable a named stream.Turn off the named stream feature for this cluster.
- Parameters:
fn- a function that initializes a builder to create theLogsDisableRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
logsEnable
public LogsEnableResponse logsEnable(LogsEnableRequest request) throws IOException, ElasticsearchException Enable a named stream.Turn on the named stream feature for this cluster.
NOTE: To protect existing data, this feature can be turned on only if the cluster does not have existing indices or data streams that match the pattern
<name>|<name>.*for the enabled stream type name. If those indices or data streams exist, a409 - Conflictresponse and error is returned.- Throws:
IOExceptionElasticsearchException- See Also:
-
logsEnable
public final LogsEnableResponse logsEnable(Function<LogsEnableRequest.Builder, ObjectBuilder<LogsEnableRequest>> fn) throws IOException, ElasticsearchExceptionEnable a named stream.Turn on the named stream feature for this cluster.
NOTE: To protect existing data, this feature can be turned on only if the cluster does not have existing indices or data streams that match the pattern
<name>|<name>.*for the enabled stream type name. If those indices or data streams exist, a409 - Conflictresponse and error is returned.- Parameters:
fn- a function that initializes a builder to create theLogsEnableRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
status
public StreamsStatusResponse status(StreamsStatusRequest request) throws IOException, ElasticsearchException Get the status of streams.Get the current status for all types of streams.
- Throws:
IOExceptionElasticsearchException- See Also:
-
status
public final StreamsStatusResponse status(Function<StreamsStatusRequest.Builder, ObjectBuilder<StreamsStatusRequest>> fn) throws IOException, ElasticsearchExceptionGet the status of streams.Get the current status for all types of streams.
- Parameters:
fn- a function that initializes a builder to create theStreamsStatusRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
status
Get the status of streams.Get the current status for all types of streams.
- Throws:
IOExceptionElasticsearchException- See Also:
-