Class SyncJobClaimRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.connector.SyncJobClaimRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class SyncJobClaimRequest
extends RequestBase
implements JsonpSerializable
Claim a connector sync job. This action updates the job status to
in_progress
and sets the last_seen
and
started_at
timestamps to the current time. Additionally, it can
set the sync_cursor
property for the sync job.
This API is not intended for direct connector management by users. It supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch.
To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SyncJobClaimRequest>
Json deserializer forSyncJobClaimRequest
static final Endpoint<SyncJobClaimRequest,
SyncJobClaimResponse, ErrorResponse> Endpoint "connector.sync_job_claim
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Required - The unique identifier of the connector sync job.static SyncJobClaimRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final JsonData
The cursor object from the last incremental sync job.final String
Required - The host name of the current system that will run the job.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forSyncJobClaimRequest
-
_ENDPOINT
Endpoint "connector.sync_job_claim
".
-
-
Method Details
-
of
public static SyncJobClaimRequest of(Function<SyncJobClaimRequest.Builder, ObjectBuilder<SyncJobClaimRequest>> fn) -
connectorSyncJobId
Required - The unique identifier of the connector sync job.API name:
connector_sync_job_id
-
syncCursor
The cursor object from the last incremental sync job. This should reference thesync_cursor
field in the connector state for which the job runs.API name:
sync_cursor
-
workerHostname
Required - The host name of the current system that will run the job.API name:
worker_hostname
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupSyncJobClaimRequestDeserializer
protected static void setupSyncJobClaimRequestDeserializer(ObjectDeserializer<SyncJobClaimRequest.Builder> op)
-