1
14
15 package com.liferay.portal.kernel.scheduler;
16
17 import com.liferay.portal.kernel.messaging.Message;
18 import com.liferay.portal.kernel.scheduler.messaging.SchedulerRequest;
19
20 import java.util.List;
21
22
29 public interface SchedulerEngine {
30
31 public static final String DESCRIPTION = "description";
32
33 public static final int DESCRIPTION_MAX_LENGTH = 120;
34
35 public static final String DESTINATION = "destination";
36
37 public static final String DISABLE = "disable";
38
39 public static final int GROUP_NAME_MAX_LENGTH = 80;
40
41 public static final int JOB_NAME_MAX_LENGTH = 80;
42
43 public static final String MESSAGE = "message";
44
45 public static final String RECEIVER_KEY = "receiver_key";
46
47 public List<SchedulerRequest> getScheduledJobs(String groupName)
48 throws SchedulerException;
49
50 public void schedule(
51 Trigger trigger, String description, String destinationName,
52 Message message)
53 throws SchedulerException;
54
55 public void shutdown() throws SchedulerException;
56
57 public void start() throws SchedulerException;
58
59 public void unschedule(Trigger trigger) throws SchedulerException;
60
61 }