io.soyl

elect

package elect

Visibility
  1. Public
  2. All

Type Members

  1. case class LockInfo(name: String, checksec: Int, enabled: Boolean, lock: Option[UUID], lockttlsec: Int, schedule: Option[CronExpression], last: Option[DateTime], state: Option[String]) extends Product with Serializable

    This class represents the information stored in the 'locks' table.

    This class represents the information stored in the 'locks' table. See also Table.

    name
    checksec
    enabled
    lock
    lockttlsec
    schedule
    last
    state

  2. class LockToucher extends Actor with LazyLogging

    This actor is responsible for touching the lock of a singleton leader periodically to prevent it from timing out.

    This actor is responsible for touching the lock of a singleton leader periodically to prevent it from timing out.

    The most critical thing this actor needs to make sure is that it reports a failure to touch the lock using the onFailure callback.

  3. class SingletonContext extends AnyRef

    Handle class to provide context used by all singletons (mostly the Cassandra database connection for now)

  4. class SingletonManager extends Actor with LazyLogging

  5. case class SingletonManagerConfig(initialMaxDelay: FiniteDuration = 10.seconds, checkInterval: FiniteDuration = 20.seconds, lockTtl: FiniteDuration = 240.seconds, lockEnabled: Boolean = false) extends Product with Serializable

    Configuration for leaders beyond the configuration provided by the log itself.

    Configuration for leaders beyond the configuration provided by the log itself.

    initialMaxDelay

    The manager will pick a random startup delay between 0 and initialMaxDelay in order to avoid that all managers try to grab a lock at the same time upon startup.

    checkInterval

    Specifies how often the SingletonManager will try to acquire the given lock in the absence of retrieved LockInfo and to which check interval the lock will be set if tt is initially created by a SingletonManager

    lockTtl

    Specifies the TTL of the lock if it is initially created by a SingletonManager

    lockEnabled

    Specifies whether the lock is initially created as active or inactive.

  6. abstract class Worker extends Actor with LazyLogging

    Base class for workers to be managed by singleton manager.

    Base class for workers to be managed by singleton manager.

    FIXME: Examples.

Value Members

  1. object CassandraUtils

  2. object LockToucher

  3. object SingletonContext

  4. object SingletonManager extends LazyLogging

  5. object Table

  6. object Worker

Ungrouped