@@ -34,30 +34,25 @@ public class TimeseriesLifecycleType implements LifecycleType {
3434 static final String HOT_PHASE = "hot" ;
3535 static final String WARM_PHASE = "warm" ;
3636 static final String COLD_PHASE = "cold" ;
37- static final String FROZEN_PHASE = "frozen" ;
3837 static final String DELETE_PHASE = "delete" ;
39- static final List <String > VALID_PHASES = Arrays .asList (HOT_PHASE , WARM_PHASE , COLD_PHASE , FROZEN_PHASE , DELETE_PHASE );
38+ static final List <String > VALID_PHASES = Arrays .asList (HOT_PHASE , WARM_PHASE , COLD_PHASE , DELETE_PHASE );
4039 static final List <String > ORDERED_VALID_HOT_ACTIONS = Arrays .asList (SetPriorityAction .NAME , UnfollowAction .NAME , RolloverAction .NAME ,
4140 ForceMergeAction .NAME );
4241 static final List <String > ORDERED_VALID_WARM_ACTIONS = Arrays .asList (SetPriorityAction .NAME , UnfollowAction .NAME , ReadOnlyAction .NAME ,
4342 AllocateAction .NAME , ShrinkAction .NAME , ForceMergeAction .NAME );
4443 static final List <String > ORDERED_VALID_COLD_ACTIONS = Arrays .asList (SetPriorityAction .NAME , UnfollowAction .NAME , AllocateAction .NAME ,
4544 FreezeAction .NAME , SearchableSnapshotAction .NAME );
46- static final List <String > ORDERED_VALID_FROZEN_ACTIONS = Arrays .asList (SetPriorityAction .NAME , UnfollowAction .NAME , AllocateAction .NAME ,
47- FreezeAction .NAME , SearchableSnapshotAction .NAME );
4845 static final List <String > ORDERED_VALID_DELETE_ACTIONS = Arrays .asList (WaitForSnapshotAction .NAME , DeleteAction .NAME );
4946 static final Set <String > VALID_HOT_ACTIONS = Sets .newHashSet (ORDERED_VALID_HOT_ACTIONS );
5047 static final Set <String > VALID_WARM_ACTIONS = Sets .newHashSet (ORDERED_VALID_WARM_ACTIONS );
5148 static final Set <String > VALID_COLD_ACTIONS = Sets .newHashSet (ORDERED_VALID_COLD_ACTIONS );
52- static final Set <String > VALID_FROZEN_ACTIONS = Sets .newHashSet (ORDERED_VALID_FROZEN_ACTIONS );
5349 static final Set <String > VALID_DELETE_ACTIONS = Sets .newHashSet (ORDERED_VALID_DELETE_ACTIONS );
5450 private static Map <String , Set <String >> ALLOWED_ACTIONS = new HashMap <>();
5551
5652 static {
5753 ALLOWED_ACTIONS .put (HOT_PHASE , VALID_HOT_ACTIONS );
5854 ALLOWED_ACTIONS .put (WARM_PHASE , VALID_WARM_ACTIONS );
5955 ALLOWED_ACTIONS .put (COLD_PHASE , VALID_COLD_ACTIONS );
60- ALLOWED_ACTIONS .put (FROZEN_PHASE , VALID_FROZEN_ACTIONS );
6156 ALLOWED_ACTIONS .put (DELETE_PHASE , VALID_DELETE_ACTIONS );
6257 }
6358
@@ -146,9 +141,6 @@ public List<LifecycleAction> getOrderedActions(Phase phase) {
146141 case COLD_PHASE :
147142 return ORDERED_VALID_COLD_ACTIONS .stream ().map (a -> actions .getOrDefault (a , null ))
148143 .filter (Objects ::nonNull ).collect (Collectors .toList ());
149- case FROZEN_PHASE :
150- return ORDERED_VALID_FROZEN_ACTIONS .stream ().map (a -> actions .getOrDefault (a , null ))
151- .filter (Objects ::nonNull ).collect (Collectors .toList ());
152144 case DELETE_PHASE :
153145 return ORDERED_VALID_DELETE_ACTIONS .stream ().map (a -> actions .getOrDefault (a , null ))
154146 .filter (Objects ::nonNull ).collect (Collectors .toList ());
@@ -170,9 +162,6 @@ public String getNextActionName(String currentActionName, Phase phase) {
170162 case COLD_PHASE :
171163 orderedActionNames = ORDERED_VALID_COLD_ACTIONS ;
172164 break ;
173- case FROZEN_PHASE :
174- orderedActionNames = ORDERED_VALID_FROZEN_ACTIONS ;
175- break ;
176165 case DELETE_PHASE :
177166 orderedActionNames = ORDERED_VALID_DELETE_ACTIONS ;
178167 break ;
0 commit comments