Package crate.elasticsearch.action.restore

Source Code of crate.elasticsearch.action.restore.RestoreAction

package crate.elasticsearch.action.restore;

import crate.elasticsearch.action.import_.ImportRequest;
import crate.elasticsearch.action.import_.ImportResponse;
import crate.elasticsearch.client.action.import_.ImportRequestBuilder;
import org.elasticsearch.action.Action;
import org.elasticsearch.client.Client;


/**
*
*/
public class RestoreAction extends Action<ImportRequest, ImportResponse, ImportRequestBuilder> {

    public static final RestoreAction INSTANCE = new RestoreAction();
    public static final String NAME = "el-crate-restore";

    private RestoreAction() {
        super(NAME);
    }

    @Override
    public ImportResponse newResponse() {
        return new ImportResponse();
    }

    @Override
    public ImportRequestBuilder newRequestBuilder(Client client) {
        return new ImportRequestBuilder(client);
    }

}
TOP

Related Classes of crate.elasticsearch.action.restore.RestoreAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.