Package com.uc4.communication.requests
Class RestartTask
- java.lang.Object
- 
- com.uc4.communication.requests.XMLRequest
- 
- com.uc4.communication.requests.RestartTask
 
 
- 
 public final class RestartTask extends XMLRequest Restarts a task.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRestartTask.FileTransferRestartRestart setting of FileTransfers.
 - 
Constructor SummaryConstructors Constructor Description RestartTask(int runID)Creates a newRestartTaskrequest to restart the task with the specified RunID.RestartTask(int runID, UC4ObjectName queue)Creates a newRestartTaskrequest to restart the task with the specified RunID.RestartTask(UC4ObjectName name, UC4ObjectName queue)Restarts a task from the object definition.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)Creates the XML Document for the request.RestartTask.FileTransferRestartgetFileTransferSetting()Returns the file transfer restart setting.intgetReferenceRunID()Gets the reference RunID.intgetRestartedRunID()Returns the runID of the restarted task.java.lang.StringgetRestartPoint()Returns the value of the Restart Point field.protected java.lang.StringgetSrc()Returns the request source.ExecuteTestOptionsgetTestOptions()Returns theTestOptionswhich are used when restarting the task ornullif theTestOptionsare not set.protected voidhandleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)Sub classes extract the values from the XML document and provide public getter methods.booleanisKeepStartType()booleanisRestartAbortedChildrenOnly()booleanisWaitForManualRelease()voidsetActivityRestart()If this method is called the detail of a task in the activity list is returned.voidsetArchiveRestart()If this method is called the detail of a task in the statistics is returned.voidsetExplorerRestart()If this method is called the detail of a task in the Explorer is returned.voidsetFileTransferSetting(RestartTask.FileTransferRestart fileTransferSetting)Sets the file transfer restart settings.voidsetKeepStartType(boolean keepStartType)Sets a flag to decide if the start type of the task should be kept when the task is restarted.voidsetReferenceRunID(int referenceRunID)Sets the reference RunID.voidsetRestartAbortedChildrenOnly(boolean restartAbortedChildrenOnly)Sets a flag to restart only aborted children.voidsetRestartPoint(java.lang.String restartPoint)Sets the Restart Point on which the Job should continue.voidsetTestOptions(ExecuteTestOptions testOptions)Sets the test options when restarting this task.voidsetWaitForManualRelease(boolean waitForManualRelease)Sets a flag to let a restarted task what until it is manually released.- 
Methods inherited from class com.uc4.communication.requests.XMLRequestassertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, isAllowedInClientZero, send, setMessageBox, showQuarantineNotification
 
- 
 
- 
- 
- 
Constructor Detail- 
RestartTaskpublic RestartTask(int runID) Creates a newRestartTaskrequest to restart the task with the specified RunID.- Parameters:
- runID- RunID of the task which should be restarted
 
 - 
RestartTaskpublic RestartTask(UC4ObjectName name, UC4ObjectName queue) Restarts a task from the object definition.- Parameters:
- name- Name of the object.
- queue- Name of the queue
 
 - 
RestartTaskpublic RestartTask(int runID, UC4ObjectName queue)Creates a newRestartTaskrequest to restart the task with the specified RunID.- Parameters:
- runID- RunID of the task which should be restarted
- queue- Queue
 
 
- 
 - 
Method Detail- 
createRequestprotected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
- createRequestin class- XMLRequest
- Parameters:
- doc- Document, used to create new Elements
- request- Request Element - classes append information to this request element
- sessionInfo- Information about the session
 
 - 
getSrcprotected java.lang.String getSrc() Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
- getSrcin class- XMLRequest
- Returns:
- Source
 
 - 
handleContentprotected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)Description copied from class:XMLRequestSub classes extract the values from the XML document and provide public getter methods.- Overrides:
- handleContentin class- XMLRequest
- Parameters:
- doc- XML Document
- session- Info about the user session
 
 - 
getRestartedRunIDpublic int getRestartedRunID() Returns the runID of the restarted task.- Returns:
- RunID of the new task or 0if not successful
 
 - 
getReferenceRunIDpublic int getReferenceRunID() Gets the reference RunID.- Returns:
- RunID
 
 - 
setReferenceRunIDpublic void setReferenceRunID(int referenceRunID) Sets the reference RunID.- Parameters:
- referenceRunID- RunID
 
 - 
getFileTransferSettingpublic RestartTask.FileTransferRestart getFileTransferSetting() Returns the file transfer restart setting.- Returns:
- Restart setting specific to a FileTransfer (JOBF)
 
 - 
setFileTransferSettingpublic void setFileTransferSetting(RestartTask.FileTransferRestart fileTransferSetting) Sets the file transfer restart settings. Possible values:- FileTransferRestart.ALL ... Re-transfer all files
- FileTransferRestart.FROM_LAST_POSITION ... Restart the transfer from the last position
 - Parameters:
- fileTransferSetting- setting
 
 - 
getRestartPointpublic java.lang.String getRestartPoint() Returns the value of the Restart Point field.- Returns:
- Restart Point or an empty string if the restart point has not been set.
 
 - 
setRestartPointpublic void setRestartPoint(java.lang.String restartPoint) Sets the Restart Point on which the Job should continue.- Parameters:
- restartPoint- Point
 
 - 
isKeepStartTypepublic boolean isKeepStartType() - Returns:
- Returns true if the start type should be kept
 
 - 
setKeepStartTypepublic void setKeepStartType(boolean keepStartType) Sets a flag to decide if the start type of the task should be kept when the task is restarted.- Parameters:
- keepStartType- True if the start type should be kept
 
 - 
isWaitForManualReleasepublic boolean isWaitForManualRelease() - Returns:
- True if the task should wait for manual release
 
 - 
setWaitForManualReleasepublic void setWaitForManualRelease(boolean waitForManualRelease) Sets a flag to let a restarted task what until it is manually released.- Parameters:
- waitForManualRelease- True if manual release should be enabled
 
 - 
getTestOptionspublic ExecuteTestOptions getTestOptions() Returns theTestOptionswhich are used when restarting the task ornullif theTestOptionsare not set.- Returns:
- TestOptions
 
 - 
setTestOptionspublic void setTestOptions(ExecuteTestOptions testOptions) Sets the test options when restarting this task.- Parameters:
- testOptions- TestOptions
 
 - 
isRestartAbortedChildrenOnlypublic boolean isRestartAbortedChildrenOnly() - Returns:
- True if the only aborted children should be restarted
 
 - 
setRestartAbortedChildrenOnlypublic void setRestartAbortedChildrenOnly(boolean restartAbortedChildrenOnly) Sets a flag to restart only aborted children.- Parameters:
- restartAbortedChildrenOnly- True if the only aborted children should be restarted
 
 - 
setActivityRestartpublic void setActivityRestart() If this method is called the detail of a task in the activity list is returned.
 - 
setArchiveRestartpublic void setArchiveRestart() If this method is called the detail of a task in the statistics is returned.
 - 
setExplorerRestartpublic void setExplorerRestart() If this method is called the detail of a task in the Explorer is returned.
 
- 
 
-