Packages

c

scala.xml.persistent

CachedFileStorage

abstract class CachedFileStorage extends Thread

Mutable storage of immutable xml trees. Everything is kept in memory, with a thread periodically checking for changes and writing to file.

To ensure atomicity, two files are used, filename1 and '$'+filename1. The implementation switches between the two, deleting the older one after a complete dump of the database has been written.

Linear Supertypes
Thread, Runnable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CachedFileStorage
  2. Thread
  3. Runnable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CachedFileStorage(file1: File)

Abstract Value Members

  1. abstract def +=(e: Node): Unit

    adds a node, setting this.dirty to true as a side effect

  2. abstract def -=(e: Node): Unit

    removes a tree, setting this.dirty to true as a side effect

  3. abstract def nodes: collection.Iterator[Node]

    returns an iterator over the nodes in this storage

Concrete Value Members

  1. final def checkAccess(): Unit
    Definition Classes
    Thread
  2. def flush(): Unit

    Force writing of contents to the file, even if there has not been any update.

  3. def getContextClassLoader(): ClassLoader
    Definition Classes
    Thread
    Annotations
    @CallerSensitive()
  4. def getId(): Long
    Definition Classes
    Thread
  5. final def getName(): String
    Definition Classes
    Thread
  6. final def getPriority(): Int
    Definition Classes
    Thread
  7. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Thread
  8. def getState(): State
    Definition Classes
    Thread
  9. final def getThreadGroup(): ThreadGroup
    Definition Classes
    Thread
  10. def getUncaughtExceptionHandler(): UncaughtExceptionHandler
    Definition Classes
    Thread
  11. def interrupt(): Unit
    Definition Classes
    Thread
  12. final def isAlive(): Boolean
    Definition Classes
    Thread
  13. final def isDaemon(): Boolean
    Definition Classes
    Thread
  14. def isInterrupted(): Boolean
    Definition Classes
    Thread
  15. final def join(): Unit
    Definition Classes
    Thread
    Annotations
    @throws( ... )
  16. final def join(arg0: Long, arg1: Int): Unit
    Definition Classes
    Thread
    Annotations
    @throws( ... )
  17. final def join(arg0: Long): Unit
    Definition Classes
    Thread
    Annotations
    @throws( ... )
  18. def run(): Unit

    Run method of the thread.

    Run method of the thread. remember to use start() to start a thread, not run.

    Definition Classes
    CachedFileStorage → Thread → Runnable
  19. def setContextClassLoader(arg0: ClassLoader): Unit
    Definition Classes
    Thread
  20. final def setDaemon(arg0: Boolean): Unit
    Definition Classes
    Thread
  21. final def setName(arg0: String): Unit
    Definition Classes
    Thread
  22. final def setPriority(arg0: Int): Unit
    Definition Classes
    Thread
  23. def setUncaughtExceptionHandler(arg0: UncaughtExceptionHandler): Unit
    Definition Classes
    Thread
  24. def start(): Unit
    Definition Classes
    Thread
  25. def toString(): String
    Definition Classes
    Thread → AnyRef → Any

Deprecated Value Members

  1. def countStackFrames(): Int
    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. def destroy(): Unit
    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  3. def log(msg: String): Unit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11) This method and its usages will be removed. Use a debugger to debug code.

  4. final def resume(): Unit
    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  5. final def stop(arg0: java.lang.Throwable): Unit
    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  6. final def stop(): Unit
    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  7. final def suspend(): Unit
    Definition Classes
    Thread
    Annotations
    @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.