Class IOServiceIndexedImpl

  • All Implemented Interfaces:
    org.uberfire.commons.lifecycle.Disposable, org.uberfire.commons.lifecycle.PriorityDisposable, org.uberfire.io.impl.IOServiceIdentifiable, org.uberfire.io.impl.IOServiceLockable, org.uberfire.io.IOService

    public class IOServiceIndexedImpl
    extends org.uberfire.io.impl.IOServiceDotFileImpl
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.uberfire.io.IOService

        org.uberfire.io.IOService.NewFileSystemListener
    • Field Summary

      • Fields inherited from class org.uberfire.io.impl.AbstractIOService

        DEFAULT_SERVICE_NAME, fileSystems, ioWatchService, isDisposed, newFileSystemListener, UTF_8
      • Fields inherited from interface org.uberfire.io.IOService

        EMPTY_OPTIONS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void cleanupDeletedFS​(String fsName, org.uberfire.java.nio.file.Path rootDirectory)  
      void delete​(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)  
      boolean deleteIfExists​(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)  
      protected boolean delIfExists​(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)  
      void dispose()  
      org.uberfire.java.nio.file.FileSystem getFileSystem​(URI uri)  
      org.uberfire.ext.metadata.engine.MetaIndexEngine getIndexEngine()  
      protected Set<org.uberfire.java.nio.file.Path> getRealCreatedPaths​(List<org.uberfire.java.nio.file.WatchEvent<?>> events)  
      org.uberfire.java.nio.file.FileSystem newFileSystem​(URI uri, Map<String,​?> env)  
      int priority()  
      protected void setupWatchService​(org.uberfire.java.nio.file.FileSystem fs)  
      • Methods inherited from class org.uberfire.io.impl.IOServiceDotFileImpl

        buildOptions, buildOptions, copy, createDirectories, createDirectory, forceBuildOptions, getAttribute, getFileAttributeView, internalCreateDirectory, isFileScheme, loadDotFile, move, newByteChannel, newView, readAttributes, setAttributes, split
      • Methods inherited from class org.uberfire.io.impl.AbstractIOService

        convert, copy, copy, createDirectories, createDirectory, createFile, createTempDirectory, createTempDirectory, createTempFile, createTempFile, endBatch, exists, get, get, getFileSystemMetadata, getId, getLastModifiedTime, getLockControl, isSameFile, newBufferedReader, newBufferedWriter, newByteChannel, newDirectoryStream, newDirectoryStream, newInputStream, newOutputStream, notExists, onNewFileSystem, readAllBytes, readAllLines, readAllLines, readAllString, readAllString, readAttributes, setAttribute, setAttributes, size, startBatch, startBatch, write, write, write, write, write, write, write, write, write, write
      • Methods inherited from interface org.uberfire.io.IOService

        convert, copy, copy, createDirectories, createDirectory, createFile, createTempDirectory, createTempDirectory, createTempFile, createTempFile, endBatch, exists, get, get, getFileSystemMetadata, getLastModifiedTime, isSameFile, newBufferedReader, newBufferedWriter, newByteChannel, newDirectoryStream, newDirectoryStream, newInputStream, newOutputStream, notExists, onNewFileSystem, readAllBytes, readAllLines, readAllLines, readAllString, readAllString, readAttributes, setAttribute, setAttributes, size, startBatch, startBatch, write, write, write, write, write, write, write, write, write, write
    • Method Detail

      • getFileSystem

        public org.uberfire.java.nio.file.FileSystem getFileSystem​(URI uri)
                                                            throws IllegalArgumentException,
                                                                   org.uberfire.java.nio.file.FileSystemNotFoundException,
                                                                   org.uberfire.java.nio.file.ProviderNotFoundException,
                                                                   SecurityException
        Specified by:
        getFileSystem in interface org.uberfire.io.IOService
        Overrides:
        getFileSystem in class org.uberfire.io.impl.AbstractIOService
        Throws:
        IllegalArgumentException
        org.uberfire.java.nio.file.FileSystemNotFoundException
        org.uberfire.java.nio.file.ProviderNotFoundException
        SecurityException
      • newFileSystem

        public org.uberfire.java.nio.file.FileSystem newFileSystem​(URI uri,
                                                                   Map<String,​?> env)
                                                            throws IllegalArgumentException,
                                                                   org.uberfire.java.nio.file.FileSystemAlreadyExistsException,
                                                                   org.uberfire.java.nio.file.ProviderNotFoundException,
                                                                   org.uberfire.java.nio.IOException,
                                                                   SecurityException
        Specified by:
        newFileSystem in interface org.uberfire.io.IOService
        Overrides:
        newFileSystem in class org.uberfire.io.impl.AbstractIOService
        Throws:
        IllegalArgumentException
        org.uberfire.java.nio.file.FileSystemAlreadyExistsException
        org.uberfire.java.nio.file.ProviderNotFoundException
        org.uberfire.java.nio.IOException
        SecurityException
      • priority

        public int priority()
        Specified by:
        priority in interface org.uberfire.commons.lifecycle.PriorityDisposable
        Overrides:
        priority in class org.uberfire.io.impl.IOServiceDotFileImpl
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.uberfire.commons.lifecycle.Disposable
        Overrides:
        dispose in class org.uberfire.io.impl.AbstractIOService
      • setupWatchService

        protected void setupWatchService​(org.uberfire.java.nio.file.FileSystem fs)
      • delete

        public void delete​(org.uberfire.java.nio.file.Path path,
                           org.uberfire.java.nio.file.DeleteOption... options)
                    throws IllegalArgumentException,
                           org.uberfire.java.nio.file.NoSuchFileException,
                           org.uberfire.java.nio.file.DirectoryNotEmptyException,
                           org.uberfire.java.nio.IOException,
                           SecurityException
        Specified by:
        delete in interface org.uberfire.io.IOService
        Overrides:
        delete in class org.uberfire.io.impl.IOServiceDotFileImpl
        Throws:
        IllegalArgumentException
        org.uberfire.java.nio.file.NoSuchFileException
        org.uberfire.java.nio.file.DirectoryNotEmptyException
        org.uberfire.java.nio.IOException
        SecurityException
      • getRealCreatedPaths

        protected Set<org.uberfire.java.nio.file.Path> getRealCreatedPaths​(List<org.uberfire.java.nio.file.WatchEvent<?>> events)
      • cleanupDeletedFS

        protected void cleanupDeletedFS​(String fsName,
                                        org.uberfire.java.nio.file.Path rootDirectory)
      • deleteIfExists

        public boolean deleteIfExists​(org.uberfire.java.nio.file.Path path,
                                      org.uberfire.java.nio.file.DeleteOption... options)
                               throws IllegalArgumentException,
                                      org.uberfire.java.nio.IOException,
                                      SecurityException
        Specified by:
        deleteIfExists in interface org.uberfire.io.IOService
        Overrides:
        deleteIfExists in class org.uberfire.io.impl.IOServiceDotFileImpl
        Throws:
        IllegalArgumentException
        org.uberfire.java.nio.IOException
        SecurityException
      • getIndexEngine

        public org.uberfire.ext.metadata.engine.MetaIndexEngine getIndexEngine()