Class CronDB

java.lang.Object
sk.iway.iwcm.system.cron.CronDB

public class CronDB extends Object
CronDB.java
  • Field Details

  • Constructor Details

    • CronDB

      public CronDB()
  • Method Details

    • getById

      public static CronTask getById(Long id)
    • getAll

      public static List<CronTask> getAll()
    • getCronTasks

      public static List<CronTask> getCronTasks(String filterCrontabTask)
    • getCronTasksRunAtStartup

      public static List<CronTask> getCronTasksRunAtStartup()
    • delete

      public static void delete(Long id)
    • save

      public static CronTask save(CronTask task)
    • getCronNodeType

      public static String getCronNodeType()
      Get cluster node type for current node. If current node is public, return "all-public", otherwise return "all-admin"
      Returns:
    • isCronTaskForCurrentNode

      public static boolean isCronTaskForCurrentNode(String clusterNode)
      Returns true when a cron task configured for the given node can run on the current node.
      Parameters:
      clusterNode - configured node name or node group
      Returns:
      true when the current node matches the configuration