@Inject public RestFlushAction(Settings settings, Client client, RestController controller) { super(settings, client); controller.registerHandler(POST, "/_flush", this); controller.registerHandler(POST, "/{index}/_flush", this); controller.registerHandler(GET, "/_flush", this); controller.registerHandler(GET, "/{index}/_flush", this); }
@Inject public RestBroadcastPingAction(Settings settings, Client client, RestController controller) { super(settings, client); controller.registerHandler(RestRequest.Method.GET, "/{index}/_ping/broadcast", this); controller.registerHandler(RestRequest.Method.GET, "/_cluster/{index}/_ping/broadcast", this); }