Class

scray.cassandra.sync

StartTimeDetector

Related Doc: package sync

Permalink

class StartTimeDetector extends LazyLogging

Find a consensus about the start time of a job. Start time is the time of the first consumed element. This can be an attribute of the element. It is assumed that all elements, consumed by one instance are ordered in an increasing order. (The first element is the oldest element) Also other ordinal attributes can be use.

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

Instance Constructors

  1. new StartTimeDetector(job: JobInfo[Statement, Insert, ResultSet], dbHostname: String)

    Permalink
  2. new StartTimeDetector(job: JobInfo[Statement, Insert, ResultSet], dbSession: DbSession[Statement, Insert, ResultSet])

    Permalink

Type Members

  1. class StartConsensusRow extends ArbitrarylyTypedRows

    Permalink

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. def allNodesVoted: Option[Long]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val configSync: SyncConfiguration

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getMinTime(times: List[Row]): Long

    Permalink

    Get the time of the first element.

  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def init: Option[Try[ResultSet]]

    Permalink

    Create keyspaces and tables if needed.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. def publishLocalStartTime(time: Long): Try[Boolean]

    Permalink
  21. def publishLocalStartTimeOnlyOnce(time: Long): Unit

    Permalink
  22. def resetSentStartTimes: Try[Boolean]

    Permalink

    Reset all sent start times for the given job.

  23. val startConsensusTable: Table[StartConsensusRow]

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. var valueAlreadySet: Boolean

    Permalink
  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def waitForFirstElementTime: Option[Long]

    Permalink
  31. def waitForFirstElementTime(timeout: Int): Option[Long]

    Permalink

    Poll the database until all nodes sent their first element date.

    Poll the database until all nodes sent their first element date.

    timeout

    timeout value in seconds to wait for first element time

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped