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.
- Alphabetic
- By Inheritance
- CachedFileStorage
- Thread
- Runnable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CachedFileStorage(file1: File)
Abstract Value Members
Concrete Value Members
-
final
def
checkAccess(): Unit
- Definition Classes
- Thread
-
def
flush(): Unit
Force writing of contents to the file, even if there has not been any update.
-
def
getContextClassLoader(): ClassLoader
- Definition Classes
- Thread
- Annotations
- @CallerSensitive()
-
def
getId(): Long
- Definition Classes
- Thread
-
final
def
getName(): String
- Definition Classes
- Thread
-
final
def
getPriority(): Int
- Definition Classes
- Thread
-
def
getStackTrace(): Array[StackTraceElement]
- Definition Classes
- Thread
-
def
getState(): State
- Definition Classes
- Thread
-
final
def
getThreadGroup(): ThreadGroup
- Definition Classes
- Thread
-
def
getUncaughtExceptionHandler(): UncaughtExceptionHandler
- Definition Classes
- Thread
-
def
interrupt(): Unit
- Definition Classes
- Thread
-
final
def
isAlive(): Boolean
- Definition Classes
- Thread
-
final
def
isDaemon(): Boolean
- Definition Classes
- Thread
-
def
isInterrupted(): Boolean
- Definition Classes
- Thread
-
final
def
join(): Unit
- Definition Classes
- Thread
- Annotations
- @throws( ... )
-
final
def
join(arg0: Long, arg1: Int): Unit
- Definition Classes
- Thread
- Annotations
- @throws( ... )
-
final
def
join(arg0: Long): Unit
- Definition Classes
- Thread
- Annotations
- @throws( ... )
-
def
run(): Unit
Run method of the thread.
Run method of the thread. remember to use
start()
to start a thread, notrun
.- Definition Classes
- CachedFileStorage → Thread → Runnable
-
def
setContextClassLoader(arg0: ClassLoader): Unit
- Definition Classes
- Thread
-
final
def
setDaemon(arg0: Boolean): Unit
- Definition Classes
- Thread
-
final
def
setName(arg0: String): Unit
- Definition Classes
- Thread
-
final
def
setPriority(arg0: Int): Unit
- Definition Classes
- Thread
-
def
setUncaughtExceptionHandler(arg0: UncaughtExceptionHandler): Unit
- Definition Classes
- Thread
-
def
start(): Unit
- Definition Classes
- Thread
-
def
toString(): String
- Definition Classes
- Thread → AnyRef → Any
Deprecated Value Members
-
def
countStackFrames(): Int
- Definition Classes
- Thread
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
-
def
destroy(): Unit
- Definition Classes
- Thread
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
-
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.
-
final
def
resume(): Unit
- Definition Classes
- Thread
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
-
final
def
stop(arg0: java.lang.Throwable): Unit
- Definition Classes
- Thread
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
-
final
def
stop(): Unit
- Definition Classes
- Thread
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
-
final
def
suspend(): Unit
- Definition Classes
- Thread
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.