Class UnixFSTransactionRollbackExecutionHandler
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSTransactionRollbackExecutionHandler
- All Implemented Interfaces:
UnixFSTransactionProgramInterpreter.ExecutionHandler
public class UnixFSTransactionRollbackExecutionHandler
extends Object
implements UnixFSTransactionProgramInterpreter.ExecutionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupPath
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Cleans up thePath
resources associated with the transaction.void
cleanupResourceId
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Cleans up theResourceId
resources associated with the transaction.void
cleanupTasks
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Cleans up the tasks for theResourceId
resources associated with the transaction.org.slf4j.Logger
Returns the preferred logger for thisUnixFSTransactionProgramInterpreter.ExecutionHandler
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.rt.transact.unix.UnixFSTransactionProgramInterpreter.ExecutionHandler
applyContentsChange, applyPathChange, applyReversePathsChange, applyTaskChanges
-
Constructor Details
-
UnixFSTransactionRollbackExecutionHandler
-
-
Method Details
-
cleanupPath
public void cleanupPath(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Description copied from interface:UnixFSTransactionProgramInterpreter.ExecutionHandler
Cleans up thePath
resources associated with the transaction.- Specified by:
cleanupPath
in interfaceUnixFSTransactionProgramInterpreter.ExecutionHandler
- Parameters:
program
-command
-rtPath
-transactionId
-
-
cleanupResourceId
public void cleanupResourceId(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Description copied from interface:UnixFSTransactionProgramInterpreter.ExecutionHandler
Cleans up theResourceId
resources associated with the transaction.- Specified by:
cleanupResourceId
in interfaceUnixFSTransactionProgramInterpreter.ExecutionHandler
- Parameters:
program
-command
-resourceId
-transactionId
-
-
cleanupTasks
public void cleanupTasks(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Description copied from interface:UnixFSTransactionProgramInterpreter.ExecutionHandler
Cleans up the tasks for theResourceId
resources associated with the transaction.- Specified by:
cleanupTasks
in interfaceUnixFSTransactionProgramInterpreter.ExecutionHandler
- Parameters:
program
-command
-resourceId
-transactionId
-
-
getLogger
public org.slf4j.Logger getLogger()Description copied from interface:UnixFSTransactionProgramInterpreter.ExecutionHandler
Returns the preferred logger for thisUnixFSTransactionProgramInterpreter.ExecutionHandler
. By default, all instructions are logged at trace level with the suppliedLogger
.- Specified by:
getLogger
in interfaceUnixFSTransactionProgramInterpreter.ExecutionHandler
- Returns:
- the logger
-
getDataStore
-