Class UnixFSTaskIndex
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSTaskIndex
- All Implemented Interfaces:
TaskIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallTasks()voidapplyChange(ResourceId resourceId, String transactionId) Applies task changes with the suppliedResourceIdand transaction id.voidcleanup(ResourceId resourceId, String transactionId) Cleans up the task changes with the suppliedResourceIdand transaction id.findTaskEntry(Supplier<TaskEntry.OperationalStrategy<ResourceId>> ctor, ResourceId resourceId) Finds theTaskEntry<ResourceId>for the suppliedResourceId.getOrCreateTaskEntry(Supplier<TaskEntry.OperationalStrategy<ResourceId>> ctor, ResourceId resourceId) Gets theTaskEntry<ResourceId>for the suppliedResourceId.Gets all entries in theTaskIndex.voidsetUnixFSUtils(UnixFSUtils unixFSUtils) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.rt.transact.TaskIndex
listAllTasks
-
Constructor Details
-
UnixFSTaskIndex
public UnixFSTaskIndex()
-
-
Method Details
-
listAllEntriesByResource
public Stream<Function<TaskEntry.OperationalStrategy<ResourceId>,TaskEntry<ResourceId>>> listAllEntriesByResource()Description copied from interface:TaskIndexGets all entries in theTaskIndex.- Specified by:
listAllEntriesByResourcein interfaceTaskIndex- Returns:
- all entries
-
allTasks
- Throws:
IOException
-
findTaskEntry
public Optional<TaskEntry<ResourceId>> findTaskEntry(Supplier<TaskEntry.OperationalStrategy<ResourceId>> ctor, ResourceId resourceId) Description copied from interface:TaskIndexFinds theTaskEntry<ResourceId>for the suppliedResourceId.- Specified by:
findTaskEntryin interfaceTaskIndex- Parameters:
ctor- the constructor fo the operational strategyresourceId- theResourceId- Returns:
- the
TaskEntry<ResourceId>
-
getOrCreateTaskEntry
public TaskEntry<ResourceId> getOrCreateTaskEntry(Supplier<TaskEntry.OperationalStrategy<ResourceId>> ctor, ResourceId resourceId) Description copied from interface:TaskIndexGets theTaskEntry<ResourceId>for the suppliedResourceId.- Specified by:
getOrCreateTaskEntryin interfaceTaskIndex- Parameters:
ctor- the constructor fo the operational strategyresourceId- theResourceId- Returns:
- the
TaskEntry<ResourceId>
-
cleanup
Description copied from interface:TaskIndexCleans up the task changes with the suppliedResourceIdand transaction id. -
applyChange
Description copied from interface:TaskIndexApplies task changes with the suppliedResourceIdand transaction id.- Specified by:
applyChangein interfaceTaskIndex- Parameters:
resourceId-transactionId-
-
getUnixFSUtils
-
setUnixFSUtils
-