1
22
23 package com.liferay.portal.kernel.scheduler;
24
25 import com.liferay.portal.kernel.scheduler.messaging.SchedulerRequest;
26
27 import java.util.Date;
28 import java.util.List;
29
30
36 public interface SchedulerEngine {
37
38 public static final String CRON_TEXT = "cronText";
39
40 public static final String DESCRIPTION = "description";
41
42 public static final String DESTINATION = "destination";
43
44 public static final String MESSAGE_BODY = "messageBody";
45
46 public List<SchedulerRequest> getScheduledJobs(String groupName)
47 throws SchedulerException;
48
49 public void schedule(
50 String groupName, long interval, Date startDate, Date endDate,
51 String description, String destinationName, String messageBody)
52 throws SchedulerException;
53
54 public void schedule(
55 String groupName, String cronText, Date startDate, Date endDate,
56 String description, String destinationName, String messageBody)
57 throws SchedulerException;
58
59 public void schedule(
60 String jobName, String groupName, long interval, Date startDate,
61 Date endDate, String description, String destinationName,
62 String messageBody)
63 throws SchedulerException;
64
65 public void schedule(
66 String jobName, String groupName, String cronText, Date startDate,
67 Date endDate, String description, String destinationName,
68 String messageBody)
69 throws SchedulerException;
70
71 public void shutdown() throws SchedulerException;
72
73 public void start() throws SchedulerException;
74
75 public void unschedule(String jobName, String groupName)
76 throws SchedulerException;
77
78 }