class SentinelClient extends BaseClient with SentinelCommands with ServerCommands
- Alphabetic
- By Inheritance
- SentinelClient
- ServerCommands
- BasicServerCommands
- SentinelCommands
- BaseClient
- Closable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SentinelClient(factory: ServiceFactory[Command, Reply])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ckQuorum(name: String): Future[String]
Check if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the majority needed to authorize the failover.
Check if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the majority needed to authorize the failover.
- Definition Classes
- SentinelCommands
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(deadline: Time): Future[Unit]
Releases underlying service factory object
Releases underlying service factory object
- Definition Classes
- BaseClient → Closable
- def close(after: Duration): Future[Unit]
- Definition Classes
- Closable
- final def close(): Future[Unit]
- Definition Classes
- Closable
- def dbSize(): Future[Long]
- Definition Classes
- ServerCommands
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val factory: ServiceFactory[Command, Reply]
- Attributes
- protected
- Definition Classes
- BaseClient
- def failover(name: String): Future[Unit]
Force a failover.
Force a failover.
- Definition Classes
- SentinelCommands
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flushAll(): Future[Unit]
Deletes all keys in all databases
Deletes all keys in all databases
- Definition Classes
- ServerCommands
- def flushConfig(): Future[Unit]
Force Sentinel to rewrite its configuration on disk, including the current Sentinel state.
Force Sentinel to rewrite its configuration on disk, including the current Sentinel state.
- Definition Classes
- SentinelCommands
- def flushDB(): Future[Unit]
Deletes all keys in current DB
Deletes all keys in current DB
- Definition Classes
- ServerCommands
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getMasterAddrByName(name: String): Future[Option[InetSocketAddress]]
Return the ip and port number of the master with that name.
Return the ip and port number of the master with that name. If a failover is in progress or terminated successfully for this master it returns the address and port of the promoted replica.
- Definition Classes
- SentinelCommands
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def info(section: Buf): Future[Option[Buf]]
Returns information and statistics about the server
Returns information and statistics about the server
- section
used to select a specific section of information.
- returns
a collection of \r\n terminated lines if server has info on the section
- Definition Classes
- BasicServerCommands
- def info(): Future[Option[Buf]]
Returns information and statistics about the server
Returns information and statistics about the server
- returns
Buf with collection of \r\n terminated lines of the default info section
- Definition Classes
- BasicServerCommands
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def master(name: String): Future[MasterNode]
Show the state and info of the specified master.
Show the state and info of the specified master.
- Definition Classes
- SentinelCommands
- def masters(): Future[Seq[MasterNode]]
Show a list of monitored masters and their state.
Show a list of monitored masters and their state.
- Definition Classes
- SentinelCommands
- def monitor(name: String, ip: String, port: Int, quorum: Int): Future[Unit]
Tells the Sentinel to start monitoring a new master with the specified name, ip, port, and quorum.
Tells the Sentinel to start monitoring a new master with the specified name, ip, port, and quorum.
- Definition Classes
- SentinelCommands
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def remove(name: String): Future[Unit]
Remove the specified master.
Remove the specified master.
- Definition Classes
- SentinelCommands
- def replicaOf(host: Buf, port: Buf): Future[Unit]
- Definition Classes
- ServerCommands
- def reset(pattern: String): Future[Unit]
Reset all the masters with matching name.
Reset all the masters with matching name.
- Definition Classes
- SentinelCommands
- def sentinels(name: String): Future[List[SentinelNode]]
Show a list of sentinel instances for this master, and their state.
Show a list of sentinel instances for this master, and their state.
- Definition Classes
- SentinelCommands
- def set(name: String, option: String, value: String): Future[Unit]
Change configuration parameters of a specific master.
Change configuration parameters of a specific master.
- Definition Classes
- SentinelCommands
- def slaveOf(host: Buf, port: Buf): Future[Unit]
- Definition Classes
- ServerCommands
- def slaves(name: String): Future[List[SlaveNode]]
Show a list of replicas for this master, and their state.
Show a list of replicas for this master, and their state.
- Definition Classes
- SentinelCommands
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()