Package

com.beachape

filemanagement

Permalink

package filemanagement

Visibility
  1. Public
  2. All

Type Members

  1. class CallbackActor extends Actor with ActorLogging

    Permalink

    Actor that performs Callbacks

    Actor that performs Callbacks

    This allows us to rather easily control concurrency in the parent MonitorActor by simply spawning a certain number of actors in the routing pool.

    Should be created via companion method's props

  2. class CallbackRegistry extends RecursiveFileActions

    Permalink

    Immutable class for holding the callbacks for a given path

    Immutable class for holding the callbacks for a given path

    Should be instantiated via companion object above

  3. class MonitorActor extends Actor with ActorLogging with RecursiveFileActions

    Permalink

    Actor for registering callbacks and delegating callback execution

    Actor for registering callbacks and delegating callback execution

    Should be instantiated with Props provided via companion object factory method

  4. trait RecursiveFileActions extends AnyRef

    Permalink

    Trait for allowing a block of code to be run recursively given a directory path

  5. class RxMonitor extends AnyRef

    Permalink

    RxScala-based class that exposes the Observable interface for file monitoring

    RxScala-based class that exposes the Observable interface for file monitoring

    Actually powered by an Actor underneath the covers because we do need to keep state (in particular the CallbackRegistry).

  6. class WatchServiceTask extends Runnable

    Permalink

    WatchService class that implements a Run method for passing into a thread

    WatchService class that implements a Run method for passing into a thread

    Largely inspired by http://www.javacodegeeks.com/2013/04/watchservice-combined-with-akka-actors.html Takes care of registering paths to be monitored as well as logic that takes care of properly shutting down and monitoring the watcher thread

Value Members

  1. object CallbackActor

    Permalink

    Companion object for CallbackActor to allow easy creation of props via apply method

  2. object CallbackRegistry

    Permalink

    Factory object for creating a CallbackRegistry based on a passed in FileEvent

  3. object Messages

    Permalink
  4. object MonitorActor

    Permalink

    Companion object for creating Monitor actor instances

  5. object RegistryTypes

    Permalink
  6. object RxMonitor

    Permalink

    Companion object for instantiating a RxMonitor instance

  7. object WatchServiceTask

    Permalink

    Companion object for factory method

Ungrouped