Class LocalTriggerManager


  • public class LocalTriggerManager
    extends java.lang.Object
    Manage the triggers within IM.
    • Constructor Detail

      • LocalTriggerManager

        public LocalTriggerManager()
    • Method Detail

      • setEnabled

        public static void setEnabled​(boolean enabled)
        Enable/disable triggers globally. Currently only set during startup based on the property files.
      • validateScripts

        public static void validateScripts​(java.lang.String name,
                                           java.lang.String triggerList)
                                    throws java.sql.SQLException,
                                           mks.ci.exception.CIException
        Verify a string trigger list is a valid collection of scripts.
        Throws:
        java.sql.SQLException
        mks.ci.exception.CIException
      • schedule

        public static void schedule​(java.util.List<mks.ci.server.engine.TriggerData> rules)
        Scheduled triggers. Call this method when the set of triggers has changed. Kills the current schedule thread when it has completed any in progress triggers; then spawns a new one.