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.exception.SystemException;
18  import com.liferay.portal.kernel.messaging.MessageListener;
19  
20  /**
21   * <a href="SchedulerEntry.java.html"><b><i>View Source</i></b></a>
22   *
23   * @author Shuyang Zhou
24   */
25  public interface SchedulerEntry {
26  
27      public String getDescription();
28  
29      public MessageListener getEventListener();
30  
31      public String getEventListenerClass();
32  
33      public String getTimeUnit();
34  
35      public Trigger getTrigger() throws SystemException;
36  
37      public TriggerType getTriggerType();
38  
39      public String getTriggerValue();
40  
41      public boolean isReadProperty();
42  
43      public void setDescription(String description);
44  
45      public void setEventListener(MessageListener eventListener);
46  
47      public void setEventListenerClass(String eventListenerClass);
48  
49      public void setReadProperty(boolean readProperty);
50  
51      public void setTimeUnit(String timeUnit);
52  
53      public void setTriggerType(TriggerType triggerType);
54  
55      public void setTriggerValue(String triggerValue);
56  
57  }