Interface MonitorCondition

    • Method Detail

      • getSeverity

        Long getSeverity()
        Get the value for Severity. (The severity to assign to parent when the condition is violated) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getExpression

        String getExpression()
        Get the value for Expression. (The Redwood expression to evaluate this condition with.)
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setSeverity

        void setSeverity​(Long newSeverity)
        Set the value for Severity. (The severity to assign to parent when the condition is violated) This value is mandatory.
        Parameters:
        newSeverity - the new value for Severity. If this is null, then the object cannot be persisted.
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setExpression

        void setExpression​(String newExpression)
        Set the value for Expression. (The Redwood expression to evaluate this condition with.) This value is optional.
        Parameters:
        newExpression - the new value for Expression.
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getMonitorCheck

        MonitorCheck getMonitorCheck()
        Get the MonitorCheck.
        Returns:
        MonitorCheck
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • getActionSubject

        Subject getActionSubject()
        Get the ActionSubject.
        Specified by:
        getActionSubject in interface ActionSubjectObject
        Returns:
        ActionSubject
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • setActionSubject

        void setActionSubject​(Subject newActionSubject)
        Set the value for ActionSubject. This value is optional.
        Parameters:
        newActionSubject - is the object to set ActionSubject to. Who does this action execute as?