Slair1 commented on a change in pull request #3908: Alert on certain host
status transitions
URL: https://github.com/apache/cloudstack/pull/3908#discussion_r382885268
##########
File path: utils/src/main/java/com/cloud/utils/fsm/StateMachine2.java
##########
@@ -50,7 +50,11 @@ public void addInitialTransition(E event, S toState) {
}
public void addTransition(S currentState, E event, S toState) {
- addTransition(new Transition<S, E>(currentState, event, toState, null));
+ addTransition(currentState, event, toState, false);
+ }
+
+ public void addTransition(S currentState, E event, S toState, boolean
alertFlag) {
+ addTransition(new Transition<S, E>(currentState, event, toState, null,
alertFlag));
}
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