Class UnixFSPathMapping
java.lang.Object
dev.getelements.elements.rt.transact.unix.UnixFSPathMapping
- All Implemented Interfaces:
UnixFSHasFilesystemPath
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static UnixFSPathMapping
fromFullyQualifiedFSPath
(UnixFSUtils utils, HasNodeId hasNodeId, Path fsPath) Creates aUnixFSPathMapping
with the supplied information which resolves a particularPath
to aPath
mapping.static UnixFSPathMapping
fromRTPath
(UnixFSUtils utils, Path rtPath) Creates aUnixFSPathMapping
with the supplied information which resolves a particularPath
to aPath
mapping.getFilesystemPath
(String transactionId) Gets the FS Path for hte object, appending the transaction ID.getPath()
Returns thePath
representing the symbolic path.Get theUnixFSUtils
associated with thisUnixFSPathMapping
.int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.rt.transact.unix.UnixFSHasFilesystemPath
createParentDirectories, getFilesystemPath
-
Method Details
-
getUnixFSUtils
Get theUnixFSUtils
associated with thisUnixFSPathMapping
.- Returns:
- the utils for this mapping.
-
getPath
Returns thePath
representing the symbolic path. This is always a fully qualified path with the context set properly.- Returns:
- the
Path
instance
-
getFilesystemPath
Description copied from interface:UnixFSHasFilesystemPath
Gets the FS Path for hte object, appending the transaction ID.- Specified by:
getFilesystemPath
in interfaceUnixFSHasFilesystemPath
- Parameters:
transactionId
- the transaction ID- Returns:
- the
Path
appending the transaction ID.
-
equals
-
hashCode
public int hashCode() -
fromRTPath
Creates aUnixFSPathMapping
with the supplied information which resolves a particularPath
to aPath
mapping.- Parameters:
utils
- theUnixFSUtils
used to determine the actual configured locationrtPath
- thePath
representing the symbolic location of the resource- Returns:
- the
UnixFSPathMapping
instance
-
fromFullyQualifiedFSPath
public static UnixFSPathMapping fromFullyQualifiedFSPath(UnixFSUtils utils, HasNodeId hasNodeId, Path fsPath) Creates aUnixFSPathMapping
with the supplied information which resolves a particularPath
to aPath
mapping. This assumes that the suppliedPath
is fully qualified in that the first component contains a stringifiedNodeId
. This relativizes this against the path storage root and then infers theNodeId
from the first component of the path.- Parameters:
utils
- theUnixFSUtils
used to determine the actual configured locationfsPath
- thePath
representing the on-disk directory for thePath
- Returns:
- the
UnixFSPathMapping
instance
-