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  import java.io.Serializable;
20  
21  /**
22   * <a href="SchedulerEntry.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Shuyang Zhou
25   */
26  public interface SchedulerEntry extends Serializable {
27  
28      public String getDescription();
29  
30      public MessageListener getEventListener();
31  
32      public String getEventListenerClass();
33  
34      public String getPropertyKey();
35  
36      public TimeUnit getTimeUnit();
37  
38      public Trigger getTrigger() throws SchedulerException;
39  
40      public TriggerType getTriggerType();
41  
42      public String getTriggerValue();
43  
44      public void setDescription(String description);
45  
46      public void setEventListener(MessageListener eventListener);
47  
48      public void setEventListenerClass(String eventListenerClass);
49  
50      public void setPropertyKey(String propertyKey);
51  
52      public void setTimeUnit(TimeUnit timeUnit);
53  
54      public void setTriggerType(TriggerType triggerType);
55  
56      public void setTriggerValue(int triggerValue);
57  
58      public void setTriggerValue(long triggerValue);
59  
60      public void setTriggerValue(String triggerValue);
61  
62  }