c

scredis

ClusterNode

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. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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)])

    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
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. val configEpoch: Long
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. val flags: Seq[String]
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val linkStateConnected: Boolean
  13. val master: Option[String]
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. val nodeId: String
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. val pingSent: Long
  19. val pongRecv: Long
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. val server: Server
  22. val slots: Seq[(Long, Long)]
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped