Class UnixFSResourceIndex
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSResourceIndex
- All Implemented Interfaces:
ResourceIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyContentsChange
(ResourceId resourceId, String transactionId) Applies the change to theResourceIndex
according to the supplied transaction ID.void
applyReversePathsChange
(ResourceId resourceId, String transactionId) Applies the change to theResourceIndex
according to the supplied transaction ID.void
cleanup
(ResourceId resourceId, String transactionId) Cleans up whatever may have been left behind by a partial transaction.findEntry
(ResourceId resourceId, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Loads theResourceEntry
from the suppliedPath
.getUtils()
newEntry
(ResourceId resourceId, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Creates a newResourceEntry
with the supplied transaction id andResourceId
.void
setUtils
(UnixFSUtils utils) updateContents
(ResourceId resourceId) Creates a newResourceContents
for the suppliedResourceId
.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.ResourceIndex
exists, findEntry, findReversePaths
-
Constructor Details
-
UnixFSResourceIndex
public UnixFSResourceIndex()
-
-
Method Details
-
cleanup
Description copied from interface:ResourceIndex
Cleans up whatever may have been left behind by a partial transaction.- Specified by:
cleanup
in interfaceResourceIndex
- Parameters:
transactionId
- the transaction ID
-
updateContents
Description copied from interface:ResourceIndex
Creates a newResourceContents
for the suppliedResourceId
.- Specified by:
updateContents
in interfaceResourceIndex
- Parameters:
resourceId
- the contents- Returns:
- the
ResourceContents
-
applyReversePathsChange
Description copied from interface:ResourceIndex
Applies the change to theResourceIndex
according to the supplied transaction ID.- Specified by:
applyReversePathsChange
in interfaceResourceIndex
- Parameters:
resourceId
- theResourceId
transactionId
- the transaction ID from which to apply
-
applyContentsChange
Description copied from interface:ResourceIndex
Applies the change to theResourceIndex
according to the supplied transaction ID.- Specified by:
applyContentsChange
in interfaceResourceIndex
- Parameters:
resourceId
- theResourceId
transactionId
- the transaction ID from which to apply
-
newEntry
public ResourceEntry newEntry(ResourceId resourceId, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Description copied from interface:ResourceIndex
Creates a newResourceEntry
with the supplied transaction id andResourceId
.- Specified by:
newEntry
in interfaceResourceIndex
- Parameters:
resourceId
- the resource idoperationalStrategy
- the operational strategy
-
findEntry
public Optional<ResourceEntry> findEntry(ResourceId resourceId, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Description copied from interface:ResourceIndex
Loads theResourceEntry
from the suppliedPath
. If non-existent then this will load a nascent path entry.- Specified by:
findEntry
in interfaceResourceIndex
- Returns:
- the
Path
-
getUtils
-
setUtils
-