Class/Object

com.swoval.files

DirectoryRegistryImpl

Related Docs: object DirectoryRegistryImpl | package files

Permalink

class DirectoryRegistryImpl extends DirectoryRegistry

Linear Supertypes
DirectoryRegistry, AutoCloseable, Filter[Path], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DirectoryRegistryImpl
  2. DirectoryRegistry
  3. AutoCloseable
  4. Filter
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DirectoryRegistryImpl()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accept(path: Path): Boolean

    Permalink

    Accept only some instances of T.

    Accept only some instances of T.

    returns

    true if the instance is accepted

    Definition Classes
    DirectoryRegistryImplFilter
  5. def acceptPrefix(path: Path): Boolean

    Permalink

    Returns true if this path is a prefix of a registered path.

    Returns true if this path is a prefix of a registered path. The intended use case is for the NioPathWatcher which always has the root directory as the base. This is so that we can ensure that if we register a directory that does not yet exist, that we will detect when the directory is created. For example, if we want to monitor '/foo/bar/baz', then we would accept '/foo/bar' as a valid prefix path, but we would not accept '/foo/buzz' as a valid prefix path.

    path

    the path to compare against the registered path

    returns

    true if the path is a prefix of a registered path.

    Definition Classes
    DirectoryRegistryImplDirectoryRegistry
  6. def addDirectory(path: Path, maxDepth: Int): Boolean

    Permalink

    Add the input directory to the list of registered directories.

    Add the input directory to the list of registered directories.

    path

    the directory to register

    maxDepth

    controls how many levels of the children of the path should be monitored

    returns

    true if the directory has not been previously registered before or if the new maxDepth value is greater than the previous value.

    Definition Classes
    DirectoryRegistryImplDirectoryRegistry
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def close(): Unit

    Permalink
    Definition Classes
    DirectoryRegistryImplDirectoryRegistry → AutoCloseable
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def maxDepthFor(path: Path): Int

    Permalink

    The maximum depth of children of the path to accept.

    The maximum depth of children of the path to accept.

    path

    the registered path

    returns

    the maximum depth of children if the path has been registered. Otherwise it returns Integer.MIN_VALUE.

    Definition Classes
    DirectoryRegistryImplDirectoryRegistry
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def registered(): Map[Path, Integer]

    Permalink

    Returns a map of Path -> maxDepth for each path.

    Returns a map of Path -> maxDepth for each path.

    returns

    a map of Path -> maxDepth for each path.

    Definition Classes
    DirectoryRegistryImplDirectoryRegistry
  21. def removeDirectory(path: Path): Unit

    Permalink

    Remove the path from monitoring.

    Remove the path from monitoring.

    path

    the path to stop monitoring.

    Definition Classes
    DirectoryRegistryImplDirectoryRegistry
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    DirectoryRegistryImpl → AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DirectoryRegistry

Inherited from AutoCloseable

Inherited from Filter[Path]

Inherited from AnyRef

Inherited from Any

Ungrouped