/** * By default, adds enrichers to populate {@link Attributes#SERVICE_UP} and {@link Attributes#SERVICE_STATE_ACTUAL} * based on {@link Attributes#SERVICE_NOT_UP_INDICATORS}, * {@link Attributes#SERVICE_STATE_EXPECTED} and {@link Attributes#SERVICE_PROBLEMS} * (doing nothing if these sensors are not used). * <p> * Subclasses may go further and populate the {@link Attributes#SERVICE_NOT_UP_INDICATORS} * and {@link Attributes#SERVICE_PROBLEMS} from children and members or other sources. */ // these enrichers do nothing unless Attributes.SERVICE_NOT_UP_INDICATORS are used // and/or SERVICE_STATE_EXPECTED protected void initEnrichers() { enrichers().add(ServiceNotUpLogic.newEnricherForServiceUpIfNotUpIndicatorsEmpty()); enrichers().add(ServiceStateLogic.newEnricherForServiceStateFromProblemsAndUp()); }