001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }