001    /**
002     * Copyright (c) 2000-2011 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 getContextPath();
027    
028            public String getDescription();
029    
030            public MessageListener getEventListener();
031    
032            public String getEventListenerClass();
033    
034            public String getPropertyKey();
035    
036            public TimeUnit getTimeUnit();
037    
038            public Trigger getTrigger() throws SchedulerException;
039    
040            public TriggerType getTriggerType();
041    
042            public String getTriggerValue();
043    
044            public void setContextPath(String contextPath);
045    
046            public void setDescription(String description);
047    
048            public void setEventListener(MessageListener eventListener);
049    
050            public void setEventListenerClass(String eventListenerClass);
051    
052            public void setPropertyKey(String propertyKey);
053    
054            public void setTimeUnit(TimeUnit timeUnit);
055    
056            public void setTriggerType(TriggerType triggerType);
057    
058            public void setTriggerValue(int triggerValue);
059    
060            public void setTriggerValue(long triggerValue);
061    
062            public void setTriggerValue(String triggerValue);
063    
064    }