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 voidapplyContentsChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the contnets change to aResourceId.default voidapplyPathChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Applies the suppliedPathchange.default voidapplyReversePathsChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the change to theResourceId.default voidapplyTaskChanges(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the task changes to the datastore.default voidcleanupPath(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Cleans up thePathresources associated with the transaction.default voidcleanupResourceId(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Cleans up theResourceIdresources associated with the transaction.default voidcleanupTasks(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Cleans up the tasks for theResourceIdresources associated with the transaction.default org.slf4j.LoggerReturns 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- theResourceIdtransactionId- the Transaction ID
-
applyPathChange
default void applyPathChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Applies the suppliedPathchange.- 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 theResourceIdresources associated with the transaction.- Parameters:
program-command-resourceId-transactionId-
-
cleanupPath
default void cleanupPath(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Cleans up thePathresources 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 theResourceIdresources 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
-