/** * Sets the current state of the service and the trigger Job. If the state is set to {@link ServiceState#WARNING} or * {@link ServiceState#ERROR} the triggered job will be set. * * @param state * the service state * @param triggerJobSignature * the triggered job signature */ public void setServiceState(ServiceState state, int triggerJobSignature) { setServiceState(state); setStateChanged(new Date()); if (state == ServiceState.WARNING) { setWarningStateTrigger(triggerJobSignature); } else if (state == ServiceState.ERROR) { setErrorStateTrigger(triggerJobSignature); } }