scala.xml.persistent
CachedFileStorage
class
CachedFileStorage extends Thread with Logged
Inherits
- Logged
- Thread
- Runnable
- AnyRef
- Any
Value Members
-
def
+=(e: Node): Unit
-
def
-=(e: Node): Unit
-
def
countStackFrames(): Int
-
def
destroy(): Unit
-
def
equals(arg0: Any): Boolean
-
def
flush: Unit
-
def
getContextClassLoader(): ClassLoader
-
def
getId(): Long
-
def
getStackTrace(): Array[StackTraceElement]
-
def
getState(): State
-
def
getUncaughtExceptionHandler(): UncaughtExceptionHandler
-
def
hashCode(): Int
-
def
interrupt(): Unit
-
def
isInterrupted(): Boolean
-
def
log(msg: String): Unit
-
-
def
run(): Unit
-
def
setContextClassLoader(arg0: ClassLoader): Unit
-
def
setUncaughtExceptionHandler(arg0: UncaughtExceptionHandler): Unit
-
def
start(): Unit
-
def
toString(): String
Instance constructors
-
new
CachedFileStorage(file1: File)
-
new
CachedFileStorage(arg0: ThreadGroup, arg1: Runnable, arg2: String, arg3: Long)
-
new
CachedFileStorage(arg0: ThreadGroup, arg1: Runnable, arg2: String)
-
new
CachedFileStorage(arg0: Runnable, arg1: String)
-
new
CachedFileStorage(arg0: ThreadGroup, arg1: String)
-
new
CachedFileStorage(arg0: String)
-
new
CachedFileStorage(arg0: ThreadGroup, arg1: Runnable)
-
new
CachedFileStorage(arg0: Runnable)
-
new
CachedFileStorage()
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.