Class UnixFSResourceEntryExisting
java.lang.Object
dev.getelements.elements.rt.transact.AbstractResourceEntry
dev.getelements.elements.rt.transact.unix.UnixFSResourceEntryBase
dev.getelements.elements.rt.transact.unix.UnixFSResourceEntryExisting
- All Implemented Interfaces:
ResourceEntry
,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.rt.transact.ResourceEntry
ResourceEntry.OperationalStrategy
-
Field Summary
Fields inherited from class dev.getelements.elements.rt.transact.AbstractResourceEntry
operationalStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionUnixFSResourceEntryExisting
(UnixFSUtils unixFSUtils, UnixFSHasFilesystemPath hasFilesystemPath, ResourceEntry.OperationalStrategy operationalStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closers thisResourceEntry
releasing any underlying resources associated with theResourceEntry
.Finds the original Resource contents.Finds theResourceId
associated with the node, or a result equivalent toOptional.empty()
if no such resource id exists.Gets the internal immutable list of reverse links.boolean
Checks if the list of reverse links are the original set of reverse links.Methods inherited from class dev.getelements.elements.rt.transact.unix.UnixFSResourceEntryBase
flush, getUnixFSUtils
Methods inherited from class dev.getelements.elements.rt.transact.AbstractResourceEntry
delete, findResourceId, getReversePathsImmutable, isOriginalContents, link, unlink, updateResourceContents
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.ResourceEntry
findResourceContents, getOriginalResourceId, getResourceId, isAbsent, isPresent, loadResourceContents
-
Constructor Details
-
UnixFSResourceEntryExisting
public UnixFSResourceEntryExisting(UnixFSUtils unixFSUtils, UnixFSHasFilesystemPath hasFilesystemPath, ResourceEntry.OperationalStrategy operationalStrategy) throws IOException - Throws:
IOException
-
-
Method Details
-
findOriginalResourceId
Description copied from interface:ResourceEntry
Finds theResourceId
associated with the node, or a result equivalent toOptional.empty()
if no such resource id exists.- Returns:
- an
Optional<ResourceId>
containing theResourceId
-
getOriginalReversePathsImmutable
Description copied from interface:ResourceEntry
Gets the internal immutable list of reverse links. Will always return an emptySet
if no links exist.- Returns:
- the reverse links, never null.
-
findOriginalResourceContents
Description copied from interface:ResourceEntry
Finds the original Resource contents.- Returns:
- the
Optional
ofResourceContents
-
isOriginalReversePaths
public boolean isOriginalReversePaths()Description copied from interface:ResourceEntry
Checks if the list of reverse links are the original set of reverse links.- Specified by:
isOriginalReversePaths
in interfaceResourceEntry
- Overrides:
isOriginalReversePaths
in classAbstractResourceEntry
- Returns:
- true if the links are original
-
close
public void close()Description copied from interface:ResourceEntry
Closers thisResourceEntry
releasing any underlying resources associated with theResourceEntry
.
-