コード例 #1
0
  @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);
  }
コード例 #2
0
 @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);
 }