001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.scheduler;
016    
017    import com.liferay.portal.kernel.messaging.MessageListener;
018    
019    import java.io.Serializable;
020    
021    /**
022     * @author Shuyang Zhou
023     */
024    public interface SchedulerEntry extends Serializable {
025    
026            public String getDescription();
027    
028            public MessageListener getEventListener();
029    
030            public String getEventListenerClass();
031    
032            public String getPropertyKey();
033    
034            public TimeUnit getTimeUnit();
035    
036            public Trigger getTrigger() throws SchedulerException;
037    
038            public TriggerType getTriggerType();
039    
040            public String getTriggerValue();
041    
042            public void setDescription(String description);
043    
044            public void setEventListener(MessageListener eventListener);
045    
046            public void setEventListenerClass(String eventListenerClass);
047    
048            public void setPropertyKey(String propertyKey);
049    
050            public void setTimeUnit(TimeUnit timeUnit);
051    
052            public void setTriggerType(TriggerType triggerType);
053    
054            public void setTriggerValue(int triggerValue);
055    
056            public void setTriggerValue(long triggerValue);
057    
058            public void setTriggerValue(String triggerValue);
059    
060    }