| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
VirtualFileVolume is used to operate with filesystem roots. To operate with filesystem
root user shall mount it in VirtualFileManager. The system internally has standalone cache
for each volume. Cache for volume can be managed here.
| Method Summary | |
void | addCacheControl(CacheControl control)Adds CacheControl to volume |
VirtualFileVolumeContext | getContext()Return default context for storing shared properties for files from this volume |
VirtualFile | getRoot(VirtualFileContext context)Returns the root VirtualFile of this volume |
boolean | isAvailable()Checks if the volume is available to use now |
boolean | isAvailable(boolean create, VirtualFileContext context)Checks if the volume is available to use now and creates root for the new VirtualFileVolume if it is absent. |
void | removeCacheControl(CacheControl control)Removes CacheControl to volume |
boolean | unmount()Unmounts volume from the system, saving all caches |
| Method Detail |
public void addCacheControl(CacheControl control)
CacheControl to volumepublic VirtualFileVolumeContext getContext()
public VirtualFile getRoot(VirtualFileContext context)
VirtualFile of this volumepublic boolean isAvailable()
public boolean isAvailable(boolean create, VirtualFileContext context)
VirtualFileVolume if it is absent.public void removeCacheControl(CacheControl control)
CacheControl to volumepublic boolean unmount()
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||