Slair1 commented on a change in pull request #3908: Alert on certain host
status transitions
URL: https://github.com/apache/cloudstack/pull/3908#discussion_r382885317
##########
File path: utils/src/main/java/com/cloud/utils/fsm/StateMachine2.java
##########
@@ -171,15 +179,22 @@ public String toString() {
private List<Impact> impacts;
+ private boolean alertFlag;
+
public static enum Impact {
USAGE
}
public Transition(S currentState, E event, S toState, List<Impact>
impacts) {
+ this(currentState, event, toState, impacts, false);
+ }
+
+ public Transition(S currentState, E event, S toState, List<Impact>
impacts, boolean alertFlag) {
this.currentState = currentState;
Review comment:
Old constructor just calls new constructor with False for the alertFlag. So
we don't break any functionality using the previous constructor
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services