Class UnixFSTransactionCommand.Builder
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSTransactionCommand.Builder
- Enclosing class:
UnixFSTransactionCommand
USed to build an instance of
UnixFSTransactionCommand. This configures the command header as well as each
additional parameter associated with the command.-
Method Summary
Modifier and TypeMethodDescriptionaddFSPathParameter(Path path) Appends aPathparameter.addResourceIdParameter(ResourceId resourceId) Appends aResourceIdparameter.addRTPathParameter(Path path) Appends aPathparameter.addStringParameter(String value) Adds a string parameter to the transaction command.build(ByteBuffer byteBuffer) Builds theUnixFSTransactionCommandby appending it and its commands to the suppliedByteBuffer.withInstruction(UnixFSTransactionCommandInstruction instruction) Specifies theUnixFSTransactionCommandInstructionto execute.withPhase(UnixFSTransactionProgramExecutionPhase executionPhase) Specifies theUnixFSTransactionProgramExecutionPhaseof the command.
-
Method Details
-
withPhase
public UnixFSTransactionCommand.Builder withPhase(UnixFSTransactionProgramExecutionPhase executionPhase) Specifies theUnixFSTransactionProgramExecutionPhaseof the command.- Parameters:
executionPhase- theUnixFSTransactionProgramExecutionPhase- Returns:
- this instance
-
withInstruction
public UnixFSTransactionCommand.Builder withInstruction(UnixFSTransactionCommandInstruction instruction) Specifies theUnixFSTransactionCommandInstructionto execute.- Parameters:
instruction- theUnixFSTransactionCommandInstruction- Returns:
-
addStringParameter
Adds a string parameter to the transaction command.- Parameters:
value- the string value- Returns:
- this instance
-
addFSPathParameter
Appends aPathparameter.- Parameters:
path- thePathparameter- Returns:
- this instance
-
addRTPathParameter
Appends aPathparameter.- Parameters:
path- thePathparameter- Returns:
- this instance
-
addResourceIdParameter
Appends aResourceIdparameter.- Parameters:
resourceId- theResourceIdparameter- Returns:
- this instance
-
build
Builds theUnixFSTransactionCommandby appending it and its commands to the suppliedByteBuffer.- Parameters:
byteBuffer- theByteBufferwhich will receive theUnixFSTransactionCommand
-