Class

scredis

ClusterNode

Related Doc: package scredis

Permalink

case class ClusterNode(nodeId: String, server: Server, flags: Seq[String], master: Option[String], pingSent: Long, pongRecv: Long, configEpoch: Long, linkStateConnected: Boolean, slots: Seq[(Long, Long)]) extends Product with Serializable

Information returned by CLUSTER NODES and CLUSTER SLAVES command.

nodeId

The node ID, a 40 characters random string generated when a node is created and never changed again ( unless CLUSTER RESET HARD is used).

server

The server (host and port) where clients should contact the node to run queries.

flags

A list of comma separated flags: myself, master, slave, fail?, fail, handshake, noaddr, noflags.

master

If the node is a slave, and the master is known, the master node ID, otherwise None

pingSent

Milliseconds unix time at which the currently active ping was sent, or zero if there are no pending pings.

pongRecv

Milliseconds unix time the last pong was received.

configEpoch

The configuration epoch (or version) of the current node (or of the current master if the node is a slave). Each time there is a failover, a new, unique, monotonically increasing configuration epoch is created. If multiple nodes claim to serve the same hash slots, the one with higher configuration epoch wins.

linkStateConnected

The state of the link used for the node-to-node cluster bus. We use this link to communicate with the node. True iff connected.

slots

Slot ranges served by this node.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClusterNode
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClusterNode(nodeId: String, server: Server, flags: Seq[String], master: Option[String], pingSent: Long, pongRecv: Long, configEpoch: Long, linkStateConnected: Boolean, slots: Seq[(Long, Long)])

    Permalink

    nodeId

    The node ID, a 40 characters random string generated when a node is created and never changed again ( unless CLUSTER RESET HARD is used).

    server

    The server (host and port) where clients should contact the node to run queries.

    flags

    A list of comma separated flags: myself, master, slave, fail?, fail, handshake, noaddr, noflags.

    master

    If the node is a slave, and the master is known, the master node ID, otherwise None

    pingSent

    Milliseconds unix time at which the currently active ping was sent, or zero if there are no pending pings.

    pongRecv

    Milliseconds unix time the last pong was received.

    configEpoch

    The configuration epoch (or version) of the current node (or of the current master if the node is a slave). Each time there is a failover, a new, unique, monotonically increasing configuration epoch is created. If multiple nodes claim to serve the same hash slots, the one with higher configuration epoch wins.

    linkStateConnected

    The state of the link used for the node-to-node cluster bus. We use this link to communicate with the node. True iff connected.

    slots

    Slot ranges served by this node.

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val configEpoch: Long

    Permalink

    The configuration epoch (or version) of the current node (or of the current master if the node is a slave).

    The configuration epoch (or version) of the current node (or of the current master if the node is a slave). Each time there is a failover, a new, unique, monotonically increasing configuration epoch is created. If multiple nodes claim to serve the same hash slots, the one with higher configuration epoch wins.

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. val flags: Seq[String]

    Permalink

    A list of comma separated flags: myself, master, slave, fail?, fail, handshake, noaddr, noflags.

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val linkStateConnected: Boolean

    Permalink

    The state of the link used for the node-to-node cluster bus.

    The state of the link used for the node-to-node cluster bus. We use this link to communicate with the node. True iff connected.

  13. val master: Option[String]

    Permalink

    If the node is a slave, and the master is known, the master node ID, otherwise None

  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. val nodeId: String

    Permalink

    The node ID, a 40 characters random string generated when a node is created and never changed again ( unless CLUSTER RESET HARD is used).

  16. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  18. val pingSent: Long

    Permalink

    Milliseconds unix time at which the currently active ping was sent, or zero if there are no pending pings.

  19. val pongRecv: Long

    Permalink

    Milliseconds unix time the last pong was received.

  20. val server: Server

    Permalink

    The server (host and port) where clients should contact the node to run queries.

  21. val slots: Seq[(Long, Long)]

    Permalink

    Slot ranges served by this node.

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

    Permalink
    Definition Classes
    AnyRef
  23. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped