/*
* JBoss, Home of Professional Open Source
* Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
*/
package org.jboss.elasticsearch.river.remote.mgm.state;
import org.elasticsearch.action.admin.cluster.ClusterAction;
import org.elasticsearch.client.ClusterAdminClient;
/**
* Remote River get state info action implementation.
*
* @author Vlastimil Elias (velias at redhat dot com)
*/
public class JRStateAction extends ClusterAction<JRStateRequest, JRStateResponse, JRStateRequestBuilder> {
public static final JRStateAction INSTANCE = new JRStateAction();
public static final String NAME = "remote_river/state";
protected JRStateAction() {
super(NAME);
}
@Override
public JRStateRequestBuilder newRequestBuilder(ClusterAdminClient client) {
return new JRStateRequestBuilder(client);
}
@Override
public JRStateResponse newResponse() {
return new JRStateResponse();
}
}