public final class ScheduleTaskImpl extends Object implements ScheduleTask
Modifier and Type | Field and Description |
---|---|
static int |
INTERVAL_EVEREY |
INTERVAL_DAY, INTERVAL_MONTH, INTERVAL_ONCE, INTERVAL_WEEK, OPERATION_HTTP_REQUEST
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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) |
public static int INTERVAL_EVEREY
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
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
- IOException
ScheduleException
public Credentials getCredentials()
getCredentials
in interface ScheduleTask
public boolean hasCredentials()
hasCredentials
in interface ScheduleTask
public Resource getResource()
getResource
in interface ScheduleTask
public int getInterval()
getInterval
in interface ScheduleTask
public short getOperation()
getOperation
in interface ScheduleTask
public ProxyData getProxyData()
getProxyData
in interface ScheduleTask
public boolean isResolveURL()
isResolveURL
in interface ScheduleTask
public String getTask()
getTask
in interface ScheduleTask
public long getTimeout()
getTimeout
in interface ScheduleTask
public URL getUrl()
getUrl
in interface ScheduleTask
public void setNextExecution(long nextExecution)
setNextExecution
in interface ScheduleTask
public long getNextExecution()
getNextExecution
in interface ScheduleTask
public Date getEndDate()
getEndDate
in interface ScheduleTask
public Date getStartDate()
getStartDate
in interface ScheduleTask
public Time getEndTime()
getEndTime
in interface ScheduleTask
public Time getStartTime()
getStartTime
in interface ScheduleTask
public String getIntervalAsString()
getIntervalAsString
in interface ScheduleTask
public String getStringInterval()
getStringInterval
in interface ScheduleTask
public boolean isPublish()
isPublish
in interface ScheduleTask
public boolean isValid()
isValid
in interface ScheduleTask
public void setValid(boolean valid)
setValid
in interface ScheduleTask
valid
- The valid to set.public boolean isHidden()
isHidden
in interface ScheduleTask
public void setHidden(boolean hidden)
setHidden
in interface ScheduleTask
hidden
- the hidden to setpublic boolean isReadonly()
public void setReadonly(boolean readonly)
readonly
- the readonly to setpublic boolean isPaused()
isPaused
in interface ScheduleTask
public void setPaused(boolean paused)
public boolean isAutoDelete()
public void setAutoDelete(boolean autoDelete)
Copyright © 2015 Lucee