Class UnixFSResourceIndex
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSResourceIndex
- All Implemented Interfaces:
ResourceIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyContentsChange(ResourceId resourceId, String transactionId) Applies the change to theResourceIndexaccording to the supplied transaction ID.voidapplyReversePathsChange(ResourceId resourceId, String transactionId) Applies the change to theResourceIndexaccording to the supplied transaction ID.voidcleanup(ResourceId resourceId, String transactionId) Cleans up whatever may have been left behind by a partial transaction.findEntry(ResourceId resourceId, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Loads theResourceEntryfrom the suppliedPath.getUtils()newEntry(ResourceId resourceId, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Creates a newResourceEntrywith the supplied transaction id andResourceId.voidsetUtils(UnixFSUtils utils) updateContents(ResourceId resourceId) Creates a newResourceContentsfor the suppliedResourceId.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.ResourceIndex
exists, findEntry, findReversePaths
-
Constructor Details
-
UnixFSResourceIndex
public UnixFSResourceIndex()
-
-
Method Details
-
cleanup
Description copied from interface:ResourceIndexCleans up whatever may have been left behind by a partial transaction.- Specified by:
cleanupin interfaceResourceIndex- Parameters:
transactionId- the transaction ID
-
updateContents
Description copied from interface:ResourceIndexCreates a newResourceContentsfor the suppliedResourceId.- Specified by:
updateContentsin interfaceResourceIndex- Parameters:
resourceId- the contents- Returns:
- the
ResourceContents
-
applyReversePathsChange
Description copied from interface:ResourceIndexApplies the change to theResourceIndexaccording to the supplied transaction ID.- Specified by:
applyReversePathsChangein interfaceResourceIndex- Parameters:
resourceId- theResourceIdtransactionId- the transaction ID from which to apply
-
applyContentsChange
Description copied from interface:ResourceIndexApplies the change to theResourceIndexaccording to the supplied transaction ID.- Specified by:
applyContentsChangein interfaceResourceIndex- Parameters:
resourceId- theResourceIdtransactionId- the transaction ID from which to apply
-
newEntry
public ResourceEntry newEntry(ResourceId resourceId, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Description copied from interface:ResourceIndexCreates a newResourceEntrywith the supplied transaction id andResourceId.- Specified by:
newEntryin interfaceResourceIndex- Parameters:
resourceId- the resource idoperationalStrategy- the operational strategy
-
findEntry
public Optional<ResourceEntry> findEntry(ResourceId resourceId, Supplier<ResourceEntry.OperationalStrategy> operationalStrategy) Description copied from interface:ResourceIndexLoads theResourceEntryfrom the suppliedPath. If non-existent then this will load a nascent path entry.- Specified by:
findEntryin interfaceResourceIndex- Returns:
- the
Path
-
getUtils
-
setUtils
-