Class

razie.base.data

SafeFile

Related Doc: package data

Permalink

class SafeFile[T] extends Logging

safe log file - use it to safely store some records.

NOTE that this in fact is just a playground and this is nowhere near safe... it's just a bunch of tests...

will spawn a background thread that will read records from the file, to make sure they're there... unless the OS is messing with us

Note that it will open/create automatically, when object is created

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SafeFile
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SafeFile(path: String)

    Permalink

Type Members

  1. class cdebug extends AnyRef

    Permalink
    Definition Classes
    Logging
    Annotations
    @inline()
  2. class clog extends AnyRef

    Permalink
    Definition Classes
    Logging
    Annotations
    @inline()

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val MAX_TXN: Int

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def audit(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  7. def audit(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  8. def cdebug: cdebug

    Permalink

    c++ memories, anyone...

    c++ memories, anyone... i do like to use the cout << x instead of println(x)

    Definition Classes
    Logging
    Annotations
    @inline()
  9. def clog: clog

    Permalink

    c++ memories, anyone...

    c++ memories, anyone... i do like to use the cout << x instead of println(x)

    Definition Classes
    Logging
    Annotations
    @inline()
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def close(): Unit

    Permalink

    blocking call - close this for good

  12. var closing: Boolean

    Permalink
  13. def debug(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  14. def debug(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def error(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  18. def error(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  19. val f: File

    Permalink
  20. val fin: FileReader

    Permalink
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. val fout: FileOutputStream

    Permalink
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. def info(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  26. def info(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def log(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  29. def log(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  30. val logger: Log

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def newlog(s: String): Log

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def newlog(clazz: Class[_]): Log

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. val path: String

    Permalink
  37. val reader: Thread

    Permalink

    background thread reads from file to verify records were written and calls continuations

  38. def slf4j: Logger

    Permalink

    use this if you want to log with slf4j conventions instead of the formatting conventions implemented here (String.format).

    use this if you want to log with slf4j conventions instead of the formatting conventions implemented here (String.format).

    Printf rules!

    Attributes
    protected
    Definition Classes
    Logging
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def tee(message: ⇒ String): String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. def trace(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  43. def trace(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  44. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. val waiting: ListBuffer[(T, () ⇒ Unit)]

    Permalink
  48. def warn(message: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  49. def warn(message: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @inline()
  50. def writeAsync(buf: T)(continuation: ⇒ Unit): Unit

    Permalink

    write a record - the continuation is called when the record's presence has been verified...

  51. def writeSync(buf: T): Unit

    Permalink

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped