All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ravendb.client.serverwide.operations.ServerWideOperation Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package net.ravendb.client.serverwide.operations;

import com.fasterxml.jackson.databind.node.ObjectNode;
import net.ravendb.client.documents.conventions.DocumentConventions;
import net.ravendb.client.documents.operations.Operation;
import net.ravendb.client.http.RavenCommand;
import net.ravendb.client.http.RequestExecutor;

public class ServerWideOperation extends Operation {

    public ServerWideOperation(RequestExecutor requestExecutor, DocumentConventions conventions, long id) {
        this(requestExecutor, conventions, id, null);
    }

    public ServerWideOperation(RequestExecutor requestExecutor, DocumentConventions conventions, long id, String nodeTag) {
        super(requestExecutor, null, conventions, id);
        setNodeTag(nodeTag);
    }

    @Override
    protected RavenCommand getOperationStateCommand(DocumentConventions conventions, long id) {
        return getOperationStateCommand(conventions, id, null);
    }

    @Override
    protected RavenCommand getOperationStateCommand(DocumentConventions conventions, long id, String nodeTag) {
        return new GetServerWideOperationStateOperation.GetServerWideOperationStateCommand(conventions, id, nodeTag);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy