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 TypeMethodDescriptionDisable logs stream.logsDisable(LogsDisableRequest request) Disable logs stream.final LogsDisableResponseDisable logs stream.Enable logs stream.logsEnable(LogsEnableRequest request) Enable logs stream.final LogsEnableResponseEnable logs 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 logs stream.Turn off the logs stream feature for this cluster.
- Throws:
IOExceptionElasticsearchException- See Also:
-
logsDisable
public final LogsDisableResponse logsDisable(Function<LogsDisableRequest.Builder, ObjectBuilder<LogsDisableRequest>> fn) throws IOException, ElasticsearchExceptionDisable logs stream.Turn off the logs stream feature for this cluster.
- Parameters:
fn- a function that initializes a builder to create theLogsDisableRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
logsDisable
Disable logs stream.Turn off the logs stream feature for this cluster.
- Throws:
IOExceptionElasticsearchException- See Also:
-
logsEnable
public LogsEnableResponse logsEnable(LogsEnableRequest request) throws IOException, ElasticsearchException Enable logs stream.Turn on the logs 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
logs|logs.*. 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 logs stream.Turn on the logs 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
logs|logs.*. 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:
-
logsEnable
Enable logs stream.Turn on the logs 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
logs|logs.*. If those indices or data streams exist, a409 - Conflictresponse and error is returned.- 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:
-