railo.runtime.schedule
Class ScheduleTaskImpl

java.lang.Object
  extended by railo.runtime.schedule.ScheduleTaskImpl
All Implemented Interfaces:
ScheduleTask

public final class ScheduleTaskImpl
extends Object
implements ScheduleTask

Define a single schedule Task


Field Summary
static int INTERVAL_EVEREY
           
 
Fields inherited from interface railo.runtime.schedule.ScheduleTask
INTERVAL_DAY, INTERVAL_MONTH, INTERVAL_ONCE, INTERVAL_WEEK, OPERATION_HTTP_REQUEST
 
Constructor Summary
ScheduleTaskImpl(String task, Resource file, Date startDate, Time startTime, Date endDate, Time endTime, String url, int port, String interval, long timeout, Credentials credentials, ProxyData proxy, boolean resolveURL, boolean publish, boolean hidden, boolean readonly, boolean paused, boolean autoDelete)
          constructor of the class
 
Method Summary
 Credentials getCredentials()
           
 Date getEndDate()
           
 Time getEndTime()
           
 int getInterval()
           
 String getIntervalAsString()
           
 long getNextExecution()
           
 short getOperation()
           
 ProxyData getProxyData()
           
 Resource getResource()
           
 Date getStartDate()
           
 Time getStartTime()
           
 String getStringInterval()
           
 String getTask()
           
 long getTimeout()
           
 URL getUrl()
           
 boolean hasCredentials()
           
 boolean isAutoDelete()
           
 boolean isHidden()
           
 boolean isPaused()
           
 boolean isPublish()
           
 boolean isReadonly()
           
 boolean isResolveURL()
           
 boolean isValid()
           
 String md5()
           
 void setAutoDelete(boolean autoDelete)
           
 void setHidden(boolean hidden)
           
 void setNextExecution(long nextExecution)
           
 void setPaused(boolean paused)
           
 void setReadonly(boolean readonly)
           
 void setValid(boolean valid)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERVAL_EVEREY

public static int INTERVAL_EVEREY
Constructor Detail

ScheduleTaskImpl

public ScheduleTaskImpl(String task,
                        Resource file,
                        Date startDate,
                        Time startTime,
                        Date endDate,
                        Time endTime,
                        String url,
                        int port,
                        String interval,
                        long timeout,
                        Credentials credentials,
                        ProxyData proxy,
                        boolean resolveURL,
                        boolean publish,
                        boolean hidden,
                        boolean readonly,
                        boolean paused,
                        boolean autoDelete)
                 throws IOException,
                        ScheduleException
constructor of the class

Parameters:
task - Task name
file - Output File
startDate - Start Date
startTime - Start Time
endDate -
endTime -
url - URL to invoke
port - Port of the URL to invoke
interval - interval of the job
timeout - request timeout in miilisconds
credentials - username and password for the request
proxyHost -
proxyPort -
proxyCredentials - proxy username and password
resolveURL - resolve links in the output page to absolute references or not
publish -
Throws:
IOException
ScheduleException
Method Detail

getCredentials

public Credentials getCredentials()
Specified by:
getCredentials in interface ScheduleTask
Returns:
Returns the credentials.

hasCredentials

public boolean hasCredentials()
Specified by:
hasCredentials in interface ScheduleTask
Returns:
Returns has credentials.

getResource

public Resource getResource()
Specified by:
getResource in interface ScheduleTask
Returns:
Returns the file.

getInterval

public int getInterval()
Specified by:
getInterval in interface ScheduleTask
Returns:
Returns the interval.

getOperation

public short getOperation()
Specified by:
getOperation in interface ScheduleTask
Returns:
Returns the operation.

getProxyData

public ProxyData getProxyData()
Specified by:
getProxyData in interface ScheduleTask
Returns:
Returns the proxyHost.

isResolveURL

public boolean isResolveURL()
Specified by:
isResolveURL in interface ScheduleTask
Returns:
Returns the resolveURL.

getTask

public String getTask()
Specified by:
getTask in interface ScheduleTask
Returns:
Returns the task.

getTimeout

public long getTimeout()
Specified by:
getTimeout in interface ScheduleTask
Returns:
Returns the timeout.

getUrl

public URL getUrl()
Specified by:
getUrl in interface ScheduleTask
Returns:
Returns the url.

setNextExecution

public void setNextExecution(long nextExecution)
Specified by:
setNextExecution in interface ScheduleTask

getNextExecution

public long getNextExecution()
Specified by:
getNextExecution in interface ScheduleTask
Returns:
Returns the nextExecution.

getEndDate

public Date getEndDate()
Specified by:
getEndDate in interface ScheduleTask
Returns:
Returns the endDate.

getStartDate

public Date getStartDate()
Specified by:
getStartDate in interface ScheduleTask
Returns:
Returns the startDate.

getEndTime

public Time getEndTime()
Specified by:
getEndTime in interface ScheduleTask
Returns:
Returns the endTime.

getStartTime

public Time getStartTime()
Specified by:
getStartTime in interface ScheduleTask
Returns:
Returns the startTime.

getIntervalAsString

public String getIntervalAsString()
Specified by:
getIntervalAsString in interface ScheduleTask
Returns:
returns interval definition as String

getStringInterval

public String getStringInterval()
Specified by:
getStringInterval in interface ScheduleTask
Returns:
Returns the strInterval.

isPublish

public boolean isPublish()
Specified by:
isPublish in interface ScheduleTask
Returns:
Returns the publish.

isValid

public boolean isValid()
Specified by:
isValid in interface ScheduleTask
Returns:
Returns the valid.

setValid

public void setValid(boolean valid)
Specified by:
setValid in interface ScheduleTask
Parameters:
valid - The valid to set.

isHidden

public boolean isHidden()
Specified by:
isHidden in interface ScheduleTask
Returns:
the hidden

setHidden

public void setHidden(boolean hidden)
Specified by:
setHidden in interface ScheduleTask
Parameters:
hidden - the hidden to set

isReadonly

public boolean isReadonly()
Returns:
the readonly

setReadonly

public void setReadonly(boolean readonly)
Parameters:
readonly - the readonly to set

isPaused

public boolean isPaused()
Specified by:
isPaused in interface ScheduleTask

setPaused

public void setPaused(boolean paused)

isAutoDelete

public boolean isAutoDelete()

setAutoDelete

public void setAutoDelete(boolean autoDelete)

md5

public String md5()


Copyright © 2012 Railo