com.caucho.vfs.remote
Class RemotePathRoot

java.lang.Object
  extended by com.caucho.vfs.Path
      extended by com.caucho.vfs.FilesystemPath
          extended by com.caucho.vfs.remote.RemotePath
              extended by com.caucho.vfs.remote.RemotePathRoot
All Implemented Interfaces:
java.lang.Comparable<Path>

public class RemotePathRoot
extends RemotePath

Remote filesystem


Field Summary
protected  RemoteFilesystem _remoteFilesystem
           
 
Fields inherited from class com.caucho.vfs.FilesystemPath
_bindRoot, _pathname, _root, _userPath
 
Fields inherited from class com.caucho.vfs.Path
_pathSeparatorChar, _schemeMap, _separatorChar, L
 
Constructor Summary
RemotePathRoot(java.lang.String url, Path dbDirectory, java.lang.String tableName)
          Create the root new RemoteFilesystem
 
Method Summary
 Path fsWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String newPath)
          Lookup a path relative to the current filesystem's root.
protected  RemoteFilesystem getRemoteFilesystem()
          Returns the remote filesystem.
 
Methods inherited from class com.caucho.vfs.remote.RemotePath
canRead, canWrite, copy, getCrc64, getLastModified, getLength, getScheme, isDirectory, isFile, list, openReadImpl
 
Methods inherited from class com.caucho.vfs.FilesystemPath
bind, createRoot, equals, getFullPath, getParent, getPath, getRoot, getTail, getUserPath, hashCode, normalizePath, normalizePath, schemeWalk, setUserPath
 
Methods inherited from class com.caucho.vfs.Path
cacheCopy, canExecute, changeGroup, changeGroup, changeOwner, changeOwner, chmod, clearStatusCache, compareTo, createDepend, createLink, createNewFile, createRoot, createTempFile, escapeURL, exists, getAttribute, getAttributeNames, getBlockCount, getBlockSize, getCache, getCertificates, getContentType, getCreateTime, getDevice, getDeviceId, getDiskSpaceFree, getDiskSpaceTotal, getFileSeparatorChar, getGroup, getHost, getInode, getLastAccessTime, getLastStatusChangeTime, getMode, getNativePath, getNewlineString, getNumberOfLinks, getObject, getOwner, getPathSeparatorChar, getPort, getQuery, getRelativePath, getResources, getResources, getSchemeMap, getSeparatorChar, getURL, getUser, getUserDir, getValue, isBlockDevice, isCharacterDevice, isExecutable, isFIFO, isHardLink, isLink, isObject, isPathCacheable, isSocket, isSymbolicLink, isWindows, isWindowsInsecure, iterator, lookup, lookup, lookup, lookupImpl, lookupNative, lookupNative, lookupRelativeNativePath, mkdir, mkdirs, openAppend, openAppendImpl, openFileRandomAccess, openMemoryMappedFile, openRandomAccess, openRead, openReadWrite, openReadWrite, openReadWrite, openReadWriteImpl, openWrite, openWriteImpl, putCache, readLink, realPath, remove, removeAll, renameTo, renameTo, scanScheme, setDefaultSchemeMap, setExecutable, setLastModified, setObject, setTestWindows, setValue, toString, truncate, truncate, unbind, writeToStream, writeToStream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_remoteFilesystem

protected RemoteFilesystem _remoteFilesystem
Constructor Detail

RemotePathRoot

public RemotePathRoot(java.lang.String url,
                      Path dbDirectory,
                      java.lang.String tableName)
               throws java.lang.Exception
Create the root new RemoteFilesystem

Parameters:
url - the remote url
Throws:
java.lang.Exception
Method Detail

fsWalk

public Path fsWalk(java.lang.String userPath,
                   java.util.Map<java.lang.String,java.lang.Object> newAttributes,
                   java.lang.String newPath)
Lookup a path relative to the current filesystem's root. Filesystems will specialize fsWalk.

Overrides:
fsWalk in class RemotePath
Parameters:
userPath - the exact string passed by the user's lookup()
newAttributes - the user's new attributes
newPath - the normalized real path
Returns:
the matching path

getRemoteFilesystem

protected RemoteFilesystem getRemoteFilesystem()
Returns the remote filesystem.