Commit Graph

4 Commits

Author SHA1 Message Date
Piotr Dulikowski
7e3966c03e api: add HTTP API for hint sync points
Adds HTTP endpoints for manipulating hint sync points:

- /hinted_handoff/sync_point (POST) - creates a new sync point for
  hints towards nodes listed in the `target_hosts` parameter
- /hinted_handoff/sync_point (GET) - checks the status of the sync
  point. If a non-zero `timeout` parameter is given, it waits until the
  sync point is reached or the timeout expires.
2021-08-09 09:24:36 +02:00
Amnon Heiman
f43285f39a api: replace swagger definition to use long instead of int (#5380)
In swagger 1.2 int is defined as int32.

We originally used int following the jmx definition, in practice
internally we use uint and int64 in many places.

While the API format the type correctly, an external system that uses
swagger-based code generator can face a type issue problem.

This patch replace all use of int in a return type with long that is defined as int64.

Changing the return type, have no impact on the system, but it does help
external systems that use code generator from swagger.

Fixes #5347

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
2019-12-11 12:48:29 +02:00
Amnon Heiman
a162528227 API: Adding metrics to hinted_handoff
This adds the metrics to hinted_handoff, the metrics is based on the
HintedHandoffMetrics definition.

The following commands were added:
get_create_hint_count
get_not_stored_hints_count

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-07-05 16:30:30 +03:00
Amnon Heiman
389430b3da API: Adding the hinted_handoff swagger definition
This adds the swagger definition file for the hinted_handoff.
The API is based on the HintedHandOffMBean definition.

It adds the following command:
st_endpoints_pending_hints
truncate_all_hints
schedule_hint_delivery
pause_hints_delivery

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-07-05 16:30:24 +03:00