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
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
checkAccess(): Unit
- Definition Classes
- Thread
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- Thread → AnyRef
- Annotations
- @throws( ... )
-
var
dirty: Boolean
this storage modified since last modification check
this storage modified since last modification check
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flush(): Unit
Force writing of contents to the file, even if there has not been any update.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initialNodes: collection.Iterator[Node]
finds and loads the storage file.
finds and loads the storage file. subclasses should call this method prior to any other, but only once, to obtain the initial sequence of nodes.
- Attributes
- protected
-
def
interrupt(): Unit
- Definition Classes
- Thread
-
val
interval: Int
period between modification checks, in milliseconds
period between modification checks, in milliseconds
- Attributes
- protected
-
final
def
isAlive(): Boolean
- Definition Classes
- Thread
- Annotations
- @native()
-
final
def
isDaemon(): Boolean
- Definition Classes
- Thread
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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( ... )
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Thread → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Deprecated Value Members
-
def
countStackFrames(): Int
- Definition Classes
- Thread
- Annotations
- @native() @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.