Class SyncJobContext
java.lang.Object
de.spiritscorp.datasync.controller.SyncJobContext
Manages the reactive runtime context for an individual synchronization or backup task.
Holds task-specific properties, isolated file tables, and active worker thread references.
* @author Tom Spirit
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWraps file characteristics inside property types suited for dynamic UI grids. -
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.StringPropertyjavafx.beans.property.StringPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.StringPropertyjavafx.beans.property.StringProperty -
Constructor Summary
ConstructorsConstructorDescriptionSyncJobContext(String name, Preference taskPreference) Creates a new isolated synchronization job environment with its own preference clone. * @param name The identification name for the user interface sidebar -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancelRunningTask(long timeoutMs) Signals the underlying worker thread to terminate via standard interruption flags.javafx.collections.ObservableList<SyncJobContext.FileRow> Gets the value of thejobNameproperty.Gets the value of thelogOutputproperty.Gets the value of theselectedModeproperty.Gets the value of thestatusMessageproperty.booleanGets the value of therunningproperty.javafx.beans.property.StringPropertyjavafx.beans.property.StringPropertyjavafx.beans.property.BooleanPropertyjavafx.beans.property.StringPropertyvoidsetSelectedMode(String mode) Sets the value of theselectedModeproperty.voidsetStatusMessage(String message) Sets the value of thestatusMessageproperty.javafx.beans.property.StringProperty
-
Property Details
-
jobName
public javafx.beans.property.StringProperty jobNameProperty- See Also:
-
running
public javafx.beans.property.BooleanProperty runningProperty- See Also:
-
statusMessage
public javafx.beans.property.StringProperty statusMessageProperty- See Also:
-
logOutput
public javafx.beans.property.StringProperty logOutputProperty- See Also:
-
selectedMode
public javafx.beans.property.StringProperty selectedModeProperty- See Also:
-
-
Constructor Details
-
SyncJobContext
Creates a new isolated synchronization job environment with its own preference clone. * @param name The identification name for the user interface sidebar- Parameters:
taskPreference- The template preference instance to derive task-specific settings from
-
-
Method Details
-
cancelRunningTask
public void cancelRunningTask(long timeoutMs) Signals the underlying worker thread to terminate via standard interruption flags. If a timeout greater than zero is specified, this method blocks the invoking context to await a graceful structural thread finalization.- Parameters:
timeoutMs- Maximum duration in milliseconds to await thread join; 0 executes asynchronously.
-
appendLog
-
getJobName
Gets the value of thejobNameproperty.- Property description:
- Returns:
- the value of the
jobNameproperty - See Also:
-
jobNameProperty
public javafx.beans.property.StringProperty jobNameProperty()- Returns:
- the
jobNameproperty - See Also:
-
isRunning
public boolean isRunning()Gets the value of therunningproperty.- Property description:
- Returns:
- the value of the
runningproperty - See Also:
-
runningProperty
public javafx.beans.property.BooleanProperty runningProperty()- Returns:
- the
runningproperty - See Also:
-
getStatusMessage
Gets the value of thestatusMessageproperty.- Property description:
- Returns:
- the value of the
statusMessageproperty - See Also:
-
statusMessageProperty
public javafx.beans.property.StringProperty statusMessageProperty()- Returns:
- the
statusMessageproperty - See Also:
-
setStatusMessage
Sets the value of thestatusMessageproperty.- Property description:
- Parameters:
message- the value for thestatusMessageproperty- See Also:
-
getLogOutput
Gets the value of thelogOutputproperty.- Property description:
- Returns:
- the value of the
logOutputproperty - See Also:
-
logOutputProperty
public javafx.beans.property.StringProperty logOutputProperty()- Returns:
- the
logOutputproperty - See Also:
-
getSelectedMode
Gets the value of theselectedModeproperty.- Property description:
- Returns:
- the value of the
selectedModeproperty - See Also:
-
selectedModeProperty
public javafx.beans.property.StringProperty selectedModeProperty()- Returns:
- the
selectedModeproperty - See Also:
-
setSelectedMode
Sets the value of theselectedModeproperty.- Property description:
- Parameters:
mode- the value for theselectedModeproperty- See Also:
-
getPreference
-
getDuplicateFiles
-