Package com.uc4.communication.requests
Class ModifyStartTime
- java.lang.Object
-
- com.uc4.communication.requests.XMLRequest
-
- com.uc4.communication.requests.ModifyStartTime
-
public final class ModifyStartTime extends XMLRequest
Modifies the start time of a task was executed once and is waiting for its start time.
-
-
Constructor Summary
Constructors Constructor Description ModifyStartTime(int runID, DateTime start, DateTime logicalDatetime, UC4TimezoneName timeZone)
Constructs a newModifyStartTime
request to change the start time of a task.ModifyStartTime(int runID, DateTime start, UC4TimezoneName timeZone)
Constructs a newModifyStartTime
request to change the start time of a task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
Creates the XML Document for the request.protected java.lang.String
getSrc()
Returns the request source.boolean
isTimeoutIfPast()
Returnstrue
if the task should end with a timeout in case the modified start date is in the past,false
is returned if the task should start immediately.void
modifyFirstTimeExecuteTask()
This method will set the timeoutIfPast to Zero.void
setTimeoutIfPast(boolean timeoutIfPast)
Sets the behaviour in case of a start date which is in the past: If the parametertimeoutIfPast
is set totrue
the task will end iffalse
the task will run immediately.-
Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleContent, handleResponse, ignoreMessageBox, isAllowedInClientZero, send, setMessageBox, showQuarantineNotification
-
-
-
-
Constructor Detail
-
ModifyStartTime
public ModifyStartTime(int runID, DateTime start, UC4TimezoneName timeZone)
Constructs a newModifyStartTime
request to change the start time of a task.- Parameters:
runID
- RunID of the taskstart
- Start time New start time of the tasktimeZone
- Name of the time zone object or null if the default should be used
-
ModifyStartTime
public ModifyStartTime(int runID, DateTime start, DateTime logicalDatetime, UC4TimezoneName timeZone)
Constructs a newModifyStartTime
request to change the start time of a task.- Parameters:
runID
- RunID of the taskstart
- Start time New start time of the tasklogicalDatetime
- logical Date and timetimeZone
- Name of the time zone object or null if the default should be used
-
-
Method Detail
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
Description copied from class:XMLRequest
Creates the XML Document for the request. This method is used internally.- Specified by:
createRequest
in classXMLRequest
- Parameters:
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the session
-
isTimeoutIfPast
public boolean isTimeoutIfPast()
Returnstrue
if the task should end with a timeout in case the modified start date is in the past,false
is returned if the task should start immediately.- Returns:
- Timeout setting
-
setTimeoutIfPast
public void setTimeoutIfPast(boolean timeoutIfPast)
Sets the behaviour in case of a start date which is in the past: If the parametertimeoutIfPast
is set totrue
the task will end iffalse
the task will run immediately.- Parameters:
timeoutIfPast
- Timeout if modification is in past
-
modifyFirstTimeExecuteTask
public void modifyFirstTimeExecuteTask()
This method will set the timeoutIfPast to Zero.
-
getSrc
protected java.lang.String getSrc()
Description copied from class:XMLRequest
Returns the request source. This method is used internally.- Specified by:
getSrc
in classXMLRequest
- Returns:
- Source
-
-