Skip to content

Commit a1e7d2c

Browse files
committed
Add ParallelReplaceNodeAction
1 parent 3e6f76d commit a1e7d2c

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

orion-server/src/main/java/com/pinterest/orion/core/actions/generic/GenericClusterWideAction.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,32 @@ public boolean failIfNoNodeIds() {
528528
}
529529
}
530530

531+
public static class ParallelReplaceNodeAction extends ParallelAction {
532+
public ParallelReplaceNodeAction() {
533+
super("Replace");
534+
}
535+
536+
@Override
537+
public Action getChildAction() {
538+
return new NodeAction() {
539+
@Override
540+
public String getName() {
541+
return "ReplaceNodeAction";
542+
}
543+
};
544+
}
545+
546+
@Override
547+
public boolean isCancelAllIfFailed() {
548+
return true;
549+
}
550+
551+
@Override
552+
public boolean failIfNoNodeIds() {
553+
return true;
554+
}
555+
}
556+
531557
public static class ParallelRebootNodeAction extends ParallelAction {
532558
public ParallelRebootNodeAction() {
533559
super("Reboot");

0 commit comments

Comments
 (0)