Package sk.iway.iwcm.system.cron
Class CronDB
java.lang.Object
sk.iway.iwcm.system.cron.CronDB
CronDB.java
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetAll()static CronTaskstatic StringGet cluster node type for current node.getCronTasks(String filterCrontabTask) static booleanisCronTaskForCurrentNode(String clusterNode) Returns true when a cron task configured for the given node can run on the current node.static CronTask
-
Field Details
-
mapper
-
-
Constructor Details
-
CronDB
public CronDB()
-
-
Method Details
-
getById
-
getAll
-
getCronTasks
-
getCronTasksRunAtStartup
-
delete
-
save
-
getCronNodeType
Get cluster node type for current node. If current node is public, return "all-public", otherwise return "all-admin"- Returns:
-
isCronTaskForCurrentNode
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
-