Class UnixFSTaskIndex
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSTaskIndex
- All Implemented Interfaces:
TaskIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallTasks()
void
applyChange
(ResourceId resourceId, String transactionId) Applies task changes with the suppliedResourceId
and transaction id.void
cleanup
(ResourceId resourceId, String transactionId) Cleans up the task changes with the suppliedResourceId
and 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
.void
setUnixFSUtils
(UnixFSUtils unixFSUtils) 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.TaskIndex
listAllTasks
-
Constructor Details
-
UnixFSTaskIndex
public UnixFSTaskIndex()
-
-
Method Details
-
listAllEntriesByResource
public Stream<Function<TaskEntry.OperationalStrategy<ResourceId>,TaskEntry<ResourceId>>> listAllEntriesByResource()Description copied from interface:TaskIndex
Gets all entries in theTaskIndex
.- Specified by:
listAllEntriesByResource
in interfaceTaskIndex
- Returns:
- all entries
-
allTasks
- Throws:
IOException
-
findTaskEntry
public Optional<TaskEntry<ResourceId>> findTaskEntry(Supplier<TaskEntry.OperationalStrategy<ResourceId>> ctor, ResourceId resourceId) Description copied from interface:TaskIndex
Finds theTaskEntry<ResourceId>
for the suppliedResourceId
.- Specified by:
findTaskEntry
in 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:TaskIndex
Gets theTaskEntry<ResourceId>
for the suppliedResourceId
.- Specified by:
getOrCreateTaskEntry
in interfaceTaskIndex
- Parameters:
ctor
- the constructor fo the operational strategyresourceId
- theResourceId
- Returns:
- the
TaskEntry<ResourceId>
-
cleanup
Description copied from interface:TaskIndex
Cleans up the task changes with the suppliedResourceId
and transaction id. -
applyChange
Description copied from interface:TaskIndex
Applies task changes with the suppliedResourceId
and transaction id.- Specified by:
applyChange
in interfaceTaskIndex
- Parameters:
resourceId
-transactionId
-
-
getUnixFSUtils
-
setUnixFSUtils
-