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,
org.apache.commons.httpclient.Credentials credentials,
String proxyHost,
int proxyPort,
org.apache.commons.httpclient.Credentials proxyCredentials,
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,
org.apache.commons.httpclient.Credentials credentials,
String proxyHost,
int proxyPort,
org.apache.commons.httpclient.Credentials proxyCredentials,
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 org.apache.commons.httpclient.Credentials getCredentials()
- Specified by:
getCredentials
in interface ScheduleTask
- Returns:
- Returns the credentials.
- See Also:
ScheduleTask.getCredentials()
hasCredentials
public boolean hasCredentials()
- Specified by:
hasCredentials
in interface ScheduleTask
- Returns:
- Returns has credentials.
- See Also:
ScheduleTask.hasCredentials()
getUPCredentials
public org.apache.commons.httpclient.UsernamePasswordCredentials getUPCredentials()
- Specified by:
getUPCredentials
in interface ScheduleTask
- Returns:
- Returns the credentials.
- See Also:
ScheduleTask.getUPCredentials()
getResource
public Resource getResource()
- Specified by:
getResource
in interface ScheduleTask
- Returns:
- Returns the file.
- See Also:
ScheduleTask.getResource()
getInterval
public int getInterval()
- Specified by:
getInterval
in interface ScheduleTask
- Returns:
- Returns the interval.
- See Also:
ScheduleTask.getInterval()
getOperation
public short getOperation()
- Specified by:
getOperation
in interface ScheduleTask
- Returns:
- Returns the operation.
- See Also:
ScheduleTask.getOperation()
getProxyHost
public String getProxyHost()
- Specified by:
getProxyHost
in interface ScheduleTask
- Returns:
- Returns the proxyHost.
- See Also:
ScheduleTask.getProxyHost()
getProxyPort
public int getProxyPort()
- Specified by:
getProxyPort
in interface ScheduleTask
- Returns:
- Returns the proxyPort.
- See Also:
ScheduleTask.getProxyPort()
hasProxyCredentials
public boolean hasProxyCredentials()
- Specified by:
hasProxyCredentials
in interface ScheduleTask
- Returns:
- Returns has proxyCredentials.
- See Also:
ScheduleTask.hasProxyCredentials()
getProxyCredentials
public org.apache.commons.httpclient.Credentials getProxyCredentials()
- Specified by:
getProxyCredentials
in interface ScheduleTask
- Returns:
- Returns the proxyCredentials.
- See Also:
ScheduleTask.getProxyCredentials()
getUPProxyCredentials
public org.apache.commons.httpclient.UsernamePasswordCredentials getUPProxyCredentials()
- Specified by:
getUPProxyCredentials
in interface ScheduleTask
- Returns:
- Returns the proxyCredentials.
- See Also:
ScheduleTask.getUPProxyCredentials()
isResolveURL
public boolean isResolveURL()
- Specified by:
isResolveURL
in interface ScheduleTask
- Returns:
- Returns the resolveURL.
- See Also:
ScheduleTask.isResolveURL()
getTask
public String getTask()
- Specified by:
getTask
in interface ScheduleTask
- Returns:
- Returns the task.
- See Also:
ScheduleTask.getTask()
getTimeout
public long getTimeout()
- Specified by:
getTimeout
in interface ScheduleTask
- Returns:
- Returns the timeout.
- See Also:
ScheduleTask.getTimeout()
getUrl
public URL getUrl()
- Specified by:
getUrl
in interface ScheduleTask
- Returns:
- Returns the url.
- See Also:
ScheduleTask.getUrl()
setNextExecution
public void setNextExecution(long nextExecution)
- Specified by:
setNextExecution
in interface ScheduleTask
- See Also:
railo.runtime.schedule.ScheduleTask#setNextExecution(java.util.Calendar)
getNextExecution
public long getNextExecution()
- Specified by:
getNextExecution
in interface ScheduleTask
- Returns:
- Returns the nextExecution.
- See Also:
ScheduleTask.getNextExecution()
getEndDate
public Date getEndDate()
- Specified by:
getEndDate
in interface ScheduleTask
- Returns:
- Returns the endDate.
- See Also:
ScheduleTask.getEndDate()
getStartDate
public Date getStartDate()
- Specified by:
getStartDate
in interface ScheduleTask
- Returns:
- Returns the startDate.
- See Also:
ScheduleTask.getStartDate()
getEndTime
public Time getEndTime()
- Specified by:
getEndTime
in interface ScheduleTask
- Returns:
- Returns the endTime.
- See Also:
ScheduleTask.getEndTime()
getStartTime
public Time getStartTime()
- Specified by:
getStartTime
in interface ScheduleTask
- Returns:
- Returns the startTime.
- See Also:
ScheduleTask.getStartTime()
getIntervalAsString
public String getIntervalAsString()
- Specified by:
getIntervalAsString
in interface ScheduleTask
- Returns:
- returns interval definition as String
- See Also:
ScheduleTask.getIntervalAsString()
getStringInterval
public String getStringInterval()
- Specified by:
getStringInterval
in interface ScheduleTask
- Returns:
- Returns the strInterval.
- See Also:
ScheduleTask.getStringInterval()
isPublish
public boolean isPublish()
- Specified by:
isPublish
in interface ScheduleTask
- Returns:
- Returns the publish.
- See Also:
ScheduleTask.isPublish()
isValid
public boolean isValid()
- Specified by:
isValid
in interface ScheduleTask
- Returns:
- Returns the valid.
- See Also:
ScheduleTask.isValid()
setValid
public void setValid(boolean valid)
- Specified by:
setValid
in interface ScheduleTask
- Parameters:
valid
- The valid to set.- See Also:
ScheduleTask.setValid(boolean)
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
- See Also:
ScheduleTask.isPaused()
setPaused
public void setPaused(boolean paused)
isAutoDelete
public boolean isAutoDelete()
setAutoDelete
public void setAutoDelete(boolean autoDelete)
md5
public String md5()
Copyright © 2012 Railo