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, 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
 
Method Summary
 org.apache.commons.httpclient.Credentials getCredentials()
           
 Date getEndDate()
           
 Time getEndTime()
           
 int getInterval()
           
 String getIntervalAsString()
           
 long getNextExecution()
           
 short getOperation()
           
 org.apache.commons.httpclient.Credentials getProxyCredentials()
           
 String getProxyHost()
           
 int getProxyPort()
           
 Resource getResource()
           
 Date getStartDate()
           
 Time getStartTime()
           
 String getStringInterval()
           
 String getTask()
           
 long getTimeout()
           
 org.apache.commons.httpclient.UsernamePasswordCredentials getUPCredentials()
           
 org.apache.commons.httpclient.UsernamePasswordCredentials getUPProxyCredentials()
           
 URL getUrl()
           
 boolean hasCredentials()
           
 boolean hasProxyCredentials()
           
 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,
                        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 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 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