railo.runtime.schedule
Class ScheduleTaskImpl
java.lang.Object
railo.runtime.schedule.ScheduleTaskImpl
- All Implemented Interfaces:
- ScheduleTask
public final class ScheduleTaskImpl
- extends Object
- implements ScheduleTask
Define a single schedule Task
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 |
INTERVAL_EVEREY
public static int INTERVAL_EVEREY
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 namefile
- Output FilestartDate
- Start DatestartTime
- Start TimeendDate
- endTime
- url
- URL to invokeport
- Port of the URL to invokeinterval
- interval of the jobtimeout
- request timeout in miiliscondscredentials
- username and password for the requestproxyHost
- proxyPort
- proxyCredentials
- proxy username and passwordresolveURL
- resolve links in the output page to absolute references or notpublish
-
- Throws:
IOException
ScheduleException
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