DEVIATINGstate when the cluster quorum agrees on deviating and a
CRITICALstate when the cluster quorum is in danger.
DEVIATINGstate in case a component is not running:
stateChangesRepositoryinformation that is not available if the function runs with asynchronous execution.
stateChangesRepositorycan be used to return:
elementproperties and methods listed below can be used in propagation functions with either asynchronous and synchronous execution. Functions with synchronous execution also have access to stateChangesRepository methods.
element.name- Returns the name of the current element.
element.type- Returns type of the current element.
element.version- Returns the component version (optional).
element.runState()- Returns the run state of the current element.
element.isComponent()- Returns True if element is a component and False if element is a relation.
element.getDependencies().size()- Returns the number of dependencies.
element.getDependencies()- Returns a set of the outgoing relations (for components) or a set of components (for relations).
stateChangesRepository.getPropagatedHealthStateCount(<set_of_elements>, <health_state>)Returns the number of elements in the set that have a certain health state, for example CRITICAL.
stateChangesRepository.getHighestPropagatedHealthStateFromElements(<set_of_elements>)Returns the highest propagated health state based on the given set of elements.
stateChangesRepository.getState(element).getHealthState().intValueReturns the health state of the element.
stateChangesRepository.getState(element).getPropagatedHealthState().getIntValue()Returns the propagated health state of the element.