Interface UnixFSTransactionProgramInterpreter.ExecutionHandler
- All Known Implementing Classes:
UnixFSTransactionCommitExecutionHandler
,UnixFSTransactionRollbackExecutionHandler
- Enclosing class:
UnixFSTransactionProgramInterpreter
public static interface UnixFSTransactionProgramInterpreter.ExecutionHandler
Implements the execution handlers.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
applyContentsChange
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the contnets change to aResourceId
.default void
applyPathChange
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Applies the suppliedPath
change.default void
applyReversePathsChange
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the change to theResourceId
.default void
applyTaskChanges
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the task changes to the datastore.default void
cleanupPath
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Cleans up thePath
resources associated with the transaction.default void
cleanupResourceId
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Cleans up theResourceId
resources associated with the transaction.default void
cleanupTasks
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Cleans up the tasks for theResourceId
resources associated with the transaction.default org.slf4j.Logger
Returns the preferred logger for thisUnixFSTransactionProgramInterpreter.ExecutionHandler
.
-
Method Details
-
applyReversePathsChange
default void applyReversePathsChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the change to theResourceId
.- Parameters:
program
- the programcommand
- the commandresourceId
- theResourceId
transactionId
- the Transaction ID
-
applyPathChange
default void applyPathChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Applies the suppliedPath
change.- Parameters:
program
-command
-rtPath
-transactionId
-
-
applyTaskChanges
default void applyTaskChanges(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the task changes to the datastore.- Parameters:
program
-command
-resourceId
-transactionId
-
-
applyContentsChange
default void applyContentsChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the contnets change to aResourceId
.- Parameters:
program
-command
-resourceId
-transactionId
-
-
cleanupResourceId
default void cleanupResourceId(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Cleans up theResourceId
resources associated with the transaction.- Parameters:
program
-command
-resourceId
-transactionId
-
-
cleanupPath
default void cleanupPath(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Cleans up thePath
resources associated with the transaction.- Parameters:
program
-command
-rtPath
-transactionId
-
-
cleanupTasks
default void cleanupTasks(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Cleans up the tasks for theResourceId
resources associated with the transaction.- Parameters:
program
-command
-resourceId
-transactionId
-
-
getLogger
default org.slf4j.Logger getLogger()Returns the preferred logger for thisUnixFSTransactionProgramInterpreter.ExecutionHandler
. By default, all instructions are logged at trace level with the suppliedLogger
.- Returns:
- the logger
-