Package com.uc4.communication.requests
Class ModifyStartTime
java.lang.Object
com.uc4.communication.requests.XMLRequest
com.uc4.communication.requests.ModifyStartTime
Modifies the start time of a task was executed once and is waiting for its start time.
-
Constructor Summary
ConstructorsConstructorDescriptionModifyStartTime(int runID, DateTime start, DateTime logicalDatetime, UC4TimezoneName timeZone) Constructs a newModifyStartTimerequest to change the start time of a task.ModifyStartTime(int runID, DateTime start, UC4TimezoneName timeZone) Constructs a newModifyStartTimerequest to change the start time of a task. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request.protected StringgetSrc()Returns the request source.booleanReturnstrueif the task should end with a timeout in case the modified start date is in the past,falseis returned if the task should start immediately.voidThis method will set the timeoutIfPast to Zero.voidsetTimeoutIfPast(boolean timeoutIfPast) Sets the behaviour in case of a start date which is in the past: If the parametertimeoutIfPastis set totruethe task will end iffalsethe 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 Details
-
ModifyStartTime
Constructs a newModifyStartTimerequest 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 newModifyStartTimerequest 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 Details
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
createRequestin 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()Returnstrueif the task should end with a timeout in case the modified start date is in the past,falseis 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 parametertimeoutIfPastis set totruethe task will end iffalsethe 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
Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
getSrcin classXMLRequest- Returns:
- Source
-