Class

com.mongodb.casbah.util

MongoOpLog

Related Doc: package util

Permalink

class MongoOpLog extends Iterator[MongoOpLogEntry] with Logging

For a more detailed understanding of how the MongoDB Oplog works, see Kristina Chodorow's blogpost:

http://www.kchodorow.com/blog/2010/10/12/replication-internals/

Linear Supertypes
Logging, Iterator[MongoOpLogEntry], TraversableOnce[MongoOpLogEntry], GenTraversableOnce[MongoOpLogEntry], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoOpLog
  2. Logging
  3. Iterator
  4. TraversableOnce
  5. GenTraversableOnce
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoOpLog(mongoClient: Imports.MongoClient = MongoClient(), startTimestamp: Option[BSONTimestamp] = None, namespace: Option[String] = None, replicaSet: Boolean = true)

    Permalink

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]

    Permalink
    Definition Classes
    Iterator

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[B >: MongoOpLogEntry](that: ⇒ GenTraversableOnce[B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  4. def /:[B](z: B)(op: (B, MongoOpLogEntry) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  5. def :\[B](z: B)(op: (MongoOpLogEntry, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. implicit object BSONTimestampOk extends Imports.ValidDateOrNumericType[BSONTimestamp]

    Permalink
  8. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  9. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  10. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  11. def aggregate[B](z: ⇒ B)(seqop: (B, MongoOpLogEntry) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def buffered: BufferedIterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  14. def clone(): AnyRef

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

    Permalink
  16. def collect[B](pf: PartialFunction[MongoOpLogEntry, B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.

  17. def collectFirst[B](pf: PartialFunction[MongoOpLogEntry, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  18. def contains(elem: Any): Boolean

    Permalink
    Definition Classes
    Iterator
  19. def copyToArray[B >: MongoOpLogEntry](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  20. def copyToArray[B >: MongoOpLogEntry](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  21. def copyToArray[B >: MongoOpLogEntry](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  22. def copyToBuffer[B >: MongoOpLogEntry](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  23. def corresponds[B](that: GenTraversableOnce[B])(p: (MongoOpLogEntry, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator
  24. def count(p: (MongoOpLogEntry) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. val cursor: MongoCollection.CursorType

    Permalink
  26. def drop(n: Int): Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  27. def dropWhile(p: (MongoOpLogEntry) ⇒ Boolean): Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  28. def duplicate: (Iterator[MongoOpLogEntry], Iterator[MongoOpLogEntry])

    Permalink
    Definition Classes
    Iterator
  29. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def exists(p: (MongoOpLogEntry) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  32. def filter(p: (MongoOpLogEntry) ⇒ Boolean): Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  33. def filterNot(p: (MongoOpLogEntry) ⇒ Boolean): Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  34. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def find(p: (MongoOpLogEntry) ⇒ Boolean): Option[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  36. def flatMap[B](f: (MongoOpLogEntry) ⇒ GenTraversableOnce[B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  37. def fold[A1 >: MongoOpLogEntry](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  38. def foldLeft[B](z: B)(op: (B, MongoOpLogEntry) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def foldRight[B](z: B)(op: (MongoOpLogEntry, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def forall(p: (MongoOpLogEntry) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  41. def foreach[U](f: (MongoOpLogEntry) ⇒ U): Unit

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  42. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  43. def grouped[B >: MongoOpLogEntry](size: Int): GroupedIterator[B]

    Permalink
    Definition Classes
    Iterator
  44. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  45. def hasNext: Boolean

    Permalink
    Definition Classes
    MongoOpLog → Iterator
  46. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  47. def indexOf[B >: MongoOpLogEntry](elem: B): Int

    Permalink
    Definition Classes
    Iterator
  48. def indexWhere(p: (MongoOpLogEntry) ⇒ Boolean): Int

    Permalink
    Definition Classes
    Iterator
  49. def isEmpty: Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  50. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  51. def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  52. def length: Int

    Permalink
    Definition Classes
    Iterator
  53. val local: Imports.MongoDB

    Permalink
    Attributes
    protected
  54. var log: Logger

    Permalink
    Attributes
    protected[com.mongodb.casbah]
    Definition Classes
    Logging
  55. def map[B](f: (MongoOpLogEntry) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  56. def max[B >: MongoOpLogEntry](implicit cmp: Ordering[B]): MongoOpLogEntry

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  57. def maxBy[B](f: (MongoOpLogEntry) ⇒ B)(implicit cmp: Ordering[B]): MongoOpLogEntry

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  58. def min[B >: MongoOpLogEntry](implicit cmp: Ordering[B]): MongoOpLogEntry

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  59. def minBy[B](f: (MongoOpLogEntry) ⇒ B)(implicit cmp: Ordering[B]): MongoOpLogEntry

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  60. def mkString: String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def mkString(sep: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  64. def next(): Product with Serializable with MongoOpLogEntry { val opType: Product with Serializable with com.mongodb.casbah.util.MongoOpType }

    Permalink
    Definition Classes
    MongoOpLog → Iterator
  65. def nonEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  68. val oplog: Imports.MongoCollection

    Permalink
    Attributes
    protected
  69. val oplogName: String

    Permalink
    Attributes
    protected
  70. def padTo[A1 >: MongoOpLogEntry](len: Int, elem: A1): Iterator[A1]

    Permalink
    Definition Classes
    Iterator
  71. def partition(p: (MongoOpLogEntry) ⇒ Boolean): (Iterator[MongoOpLogEntry], Iterator[MongoOpLogEntry])

    Permalink
    Definition Classes
    Iterator
  72. def patch[B >: MongoOpLogEntry](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  73. def product[B >: MongoOpLogEntry](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  74. val q: commons.Imports.DBObject

    Permalink
  75. def reduce[A1 >: MongoOpLogEntry](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def reduceLeft[B >: MongoOpLogEntry](op: (B, MongoOpLogEntry) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  77. def reduceLeftOption[B >: MongoOpLogEntry](op: (B, MongoOpLogEntry) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def reduceOption[A1 >: MongoOpLogEntry](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def reduceRight[B >: MongoOpLogEntry](op: (MongoOpLogEntry, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def reduceRightOption[B >: MongoOpLogEntry](op: (MongoOpLogEntry, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def reversed: List[MongoOpLogEntry]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  82. def sameElements(that: Iterator[_]): Boolean

    Permalink
    Definition Classes
    Iterator
  83. def scanLeft[B](z: B)(op: (B, MongoOpLogEntry) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  84. def scanRight[B](z: B)(op: (MongoOpLogEntry, B) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  85. def seq: Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  86. def size: Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. def slice(from: Int, until: Int): Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  88. def sliding[B >: MongoOpLogEntry](size: Int, step: Int): GroupedIterator[B]

    Permalink
    Definition Classes
    Iterator
  89. def span(p: (MongoOpLogEntry) ⇒ Boolean): (Iterator[MongoOpLogEntry], Iterator[MongoOpLogEntry])

    Permalink
    Definition Classes
    Iterator
  90. def sum[B >: MongoOpLogEntry](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  92. def take(n: Int): Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  93. def takeWhile(p: (MongoOpLogEntry) ⇒ Boolean): Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  94. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, MongoOpLogEntry, Col[MongoOpLogEntry]]): Col[MongoOpLogEntry]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  95. def toArray[B >: MongoOpLogEntry](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. def toBuffer[B >: MongoOpLogEntry]: Buffer[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. def toIndexedSeq: IndexedSeq[MongoOpLogEntry]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. def toIterable: Iterable[MongoOpLogEntry]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  99. def toIterator: Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  100. def toList: List[MongoOpLogEntry]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  101. def toMap[T, U](implicit ev: <:<[MongoOpLogEntry, (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  102. def toSeq: Seq[MongoOpLogEntry]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def toSet[B >: MongoOpLogEntry]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def toStream: Stream[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  105. def toString(): String

    Permalink
    Definition Classes
    Iterator → AnyRef → Any
  106. def toTraversable: Traversable[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  107. def toVector: Vector[MongoOpLogEntry]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. val tsp: BSONTimestamp

    Permalink
  109. def verifyOpLog: BSONTimestamp

    Permalink
  110. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  113. def withFilter(p: (MongoOpLogEntry) ⇒ Boolean): Iterator[MongoOpLogEntry]

    Permalink
    Definition Classes
    Iterator
  114. def zip[B](that: Iterator[B]): Iterator[(MongoOpLogEntry, B)]

    Permalink
    Definition Classes
    Iterator
  115. def zipAll[B, A1 >: MongoOpLogEntry, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]

    Permalink
    Definition Classes
    Iterator
  116. def zipWithIndex: Iterator[(MongoOpLogEntry, Int)]

    Permalink
    Definition Classes
    Iterator

Inherited from Logging

Inherited from Iterator[MongoOpLogEntry]

Inherited from TraversableOnce[MongoOpLogEntry]

Inherited from GenTraversableOnce[MongoOpLogEntry]

Inherited from AnyRef

Inherited from Any

Ungrouped