Class UnixFSTransactionCommitExecutionHandler
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSTransactionCommitExecutionHandler
- All Implemented Interfaces:
UnixFSTransactionProgramInterpreter.ExecutionHandler
public class UnixFSTransactionCommitExecutionHandler
extends Object
implements UnixFSTransactionProgramInterpreter.ExecutionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyContentsChange
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the contnets change to aResourceId
.void
applyPathChange
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Applies the suppliedPath
change.void
applyReversePathsChange
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the change to theResourceId
.void
applyTaskChanges
(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Applies the task changes to the datastore.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
cleanupPath, cleanupResourceId, cleanupTasks
-
Constructor Details
-
UnixFSTransactionCommitExecutionHandler
-
-
Method Details
-
applyContentsChange
public void applyContentsChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Description copied from interface:UnixFSTransactionProgramInterpreter.ExecutionHandler
Applies the contnets change to aResourceId
.- Specified by:
applyContentsChange
in interfaceUnixFSTransactionProgramInterpreter.ExecutionHandler
- Parameters:
program
-command
-resourceId
-transactionId
-
-
applyReversePathsChange
public void applyReversePathsChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Description copied from interface:UnixFSTransactionProgramInterpreter.ExecutionHandler
Applies the change to theResourceId
.- Specified by:
applyReversePathsChange
in interfaceUnixFSTransactionProgramInterpreter.ExecutionHandler
- Parameters:
program
- the programcommand
- the commandresourceId
- theResourceId
transactionId
- the Transaction ID
-
applyPathChange
public void applyPathChange(UnixFSTransactionProgram program, UnixFSTransactionCommand command, Path rtPath, String transactionId) Description copied from interface:UnixFSTransactionProgramInterpreter.ExecutionHandler
Applies the suppliedPath
change.- Specified by:
applyPathChange
in interfaceUnixFSTransactionProgramInterpreter.ExecutionHandler
- Parameters:
program
-command
-rtPath
-transactionId
-
-
applyTaskChanges
public void applyTaskChanges(UnixFSTransactionProgram program, UnixFSTransactionCommand command, ResourceId resourceId, String transactionId) Description copied from interface:UnixFSTransactionProgramInterpreter.ExecutionHandler
Applies the task changes to the datastore.- Specified by:
applyTaskChanges
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
-