|
65 | 65 | import org.elasticsearch.xpack.core.slm.SnapshotLifecycleMetadata;
|
66 | 66 | import org.elasticsearch.xpack.core.slm.action.DeleteSnapshotLifecycleAction;
|
67 | 67 | import org.elasticsearch.xpack.core.slm.action.ExecuteSnapshotLifecycleAction;
|
| 68 | +import org.elasticsearch.xpack.core.slm.action.ExecuteSnapshotRetentionAction; |
68 | 69 | import org.elasticsearch.xpack.core.slm.action.GetSnapshotLifecycleAction;
|
69 | 70 | import org.elasticsearch.xpack.core.slm.action.GetSnapshotLifecycleStatsAction;
|
70 | 71 | import org.elasticsearch.xpack.core.slm.action.PutSnapshotLifecycleAction;
|
|
96 | 97 | import org.elasticsearch.xpack.slm.SnapshotRetentionTask;
|
97 | 98 | import org.elasticsearch.xpack.slm.action.RestDeleteSnapshotLifecycleAction;
|
98 | 99 | import org.elasticsearch.xpack.slm.action.RestExecuteSnapshotLifecycleAction;
|
| 100 | +import org.elasticsearch.xpack.slm.action.RestExecuteSnapshotRetentionAction; |
99 | 101 | import org.elasticsearch.xpack.slm.action.RestGetSnapshotLifecycleAction;
|
100 | 102 | import org.elasticsearch.xpack.slm.action.RestGetSnapshotLifecycleStatsAction;
|
101 | 103 | import org.elasticsearch.xpack.slm.action.RestPutSnapshotLifecycleAction;
|
102 | 104 | import org.elasticsearch.xpack.slm.action.TransportDeleteSnapshotLifecycleAction;
|
103 | 105 | import org.elasticsearch.xpack.slm.action.TransportExecuteSnapshotLifecycleAction;
|
| 106 | +import org.elasticsearch.xpack.slm.action.TransportExecuteSnapshotRetentionAction; |
104 | 107 | import org.elasticsearch.xpack.slm.action.TransportGetSnapshotLifecycleAction;
|
105 | 108 | import org.elasticsearch.xpack.slm.action.TransportGetSnapshotLifecycleStatsAction;
|
106 | 109 | import org.elasticsearch.xpack.slm.action.TransportPutSnapshotLifecycleAction;
|
@@ -230,7 +233,8 @@ public List<RestHandler> getRestHandlers(Settings settings, RestController restC
|
230 | 233 | new RestDeleteSnapshotLifecycleAction(restController),
|
231 | 234 | new RestGetSnapshotLifecycleAction(restController),
|
232 | 235 | new RestExecuteSnapshotLifecycleAction(restController),
|
233 |
| - new RestGetSnapshotLifecycleStatsAction(restController) |
| 236 | + new RestGetSnapshotLifecycleStatsAction(restController), |
| 237 | + new RestExecuteSnapshotRetentionAction(restController) |
234 | 238 | ));
|
235 | 239 | }
|
236 | 240 | return handlers;
|
@@ -265,7 +269,8 @@ public List<RestHandler> getRestHandlers(Settings settings, RestController restC
|
265 | 269 | new ActionHandler<>(DeleteSnapshotLifecycleAction.INSTANCE, TransportDeleteSnapshotLifecycleAction.class),
|
266 | 270 | new ActionHandler<>(GetSnapshotLifecycleAction.INSTANCE, TransportGetSnapshotLifecycleAction.class),
|
267 | 271 | new ActionHandler<>(ExecuteSnapshotLifecycleAction.INSTANCE, TransportExecuteSnapshotLifecycleAction.class),
|
268 |
| - new ActionHandler<>(GetSnapshotLifecycleStatsAction.INSTANCE, TransportGetSnapshotLifecycleStatsAction.class) |
| 272 | + new ActionHandler<>(GetSnapshotLifecycleStatsAction.INSTANCE, TransportGetSnapshotLifecycleStatsAction.class), |
| 273 | + new ActionHandler<>(ExecuteSnapshotRetentionAction.INSTANCE, TransportExecuteSnapshotRetentionAction.class) |
269 | 274 | ));
|
270 | 275 | }
|
271 | 276 | return actions;
|
|
0 commit comments