org.elassandra.action.admin.indices.reload.ShardReloadRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch Show documentation
Show all versions of elasticsearch Show documentation
Elasticsearch subproject :server
package org.elassandra.action.admin.indices.reload;
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 ShardReloadRequest extends ReplicationRequest {
private ReloadRequest request = new ReloadRequest();
public ShardReloadRequest(ReloadRequest request, ShardId shardId) {
super(shardId);
this.request = request;
}
public ShardReloadRequest() {
}
ReloadRequest 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 "reload {" + super.toString() + "}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy