| SchedulerEntry.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 2.1 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 */
14
15 package com.liferay.portal.kernel.scheduler;
16
17 import com.liferay.portal.kernel.messaging.MessageListener;
18
19 /**
20 * <a href="SchedulerEntry.java.html"><b><i>View Source</i></b></a>
21 *
22 * @author Shuyang Zhou
23 */
24 public interface SchedulerEntry {
25
26 public String getDescription();
27
28 public MessageListener getEventListener();
29
30 public String getEventListenerClass();
31
32 public TimeUnit getTimeUnit();
33
34 public Trigger getTrigger() throws SchedulerException;
35
36 public TriggerType getTriggerType();
37
38 public String getTriggerValue();
39
40 public boolean isReadProperty();
41
42 public void setDescription(String description);
43
44 public void setEventListener(MessageListener eventListener);
45
46 public void setEventListenerClass(String eventListenerClass);
47
48 public void setReadProperty(boolean readProperty);
49
50 public void setTimeUnit(TimeUnit timeUnit);
51
52 public void setTriggerType(TriggerType triggerType);
53
54 public void setTriggerValue(String triggerValue);
55
56 }