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 forSyncJobClaimRequeststatic final Endpoint<SyncJobClaimRequest,SyncJobClaimResponse, ErrorResponse> Endpoint "connector.sync_job_claim". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - The unique identifier of the connector sync job.static SyncJobClaimRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal JsonDataThe cursor object from the last incremental sync job.final StringRequired - 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_cursorfield 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSyncJobClaimRequestDeserializer
protected static void setupSyncJobClaimRequestDeserializer(ObjectDeserializer<SyncJobClaimRequest.Builder> op)
-