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