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

org.elassandra.action.admin.indices.cleanup.ShardCleanupRequest Maven / Gradle / Ivy

There is a newer version: 6.2.3.31
Show newest version
package org.elassandra.action.admin.indices.cleanup;

import java.io.IOException;

import org.elasticsearch.action.support.replication.ReplicationRequest;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.index.shard.ShardId;

public class ShardCleanupRequest extends ReplicationRequest {

    private CleanupRequest request = new CleanupRequest();

    public ShardCleanupRequest(CleanupRequest request, ShardId shardId) {
        super(shardId);
        this.request = request;
    }

    public ShardCleanupRequest() {
    }

    CleanupRequest getRequest() {
        return request;
    }

    @Override
    public void readFrom(StreamInput in) throws IOException {
        super.readFrom(in);
        request.readFrom(in);
    }

    @Override
    public void writeTo(StreamOutput out) throws IOException {
        super.writeTo(out);
        request.writeTo(out);
    }

    @Override
    public String toString() {
        return "cleanup {" + super.toString() + "}";
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy