Interface for sentinel commands
package |
Default |
---|
__construct()
ckquorum( $arg0, $arg1) : $this
string
callable
$this
close( $arg0) : void
callable
create( $arg0, $arg1) : \io\vertx\jphp\redis\sentinel\RedisSentinel
Vertx
array | RedisOptions
\io\vertx\jphp\redis\sentinel\RedisSentinel
failover( $arg0, $arg1) : $this
string
callable
$this
flushConfig( $arg0) : $this
Normally Sentinel rewrites the configuration every time something changes in its state (in the context of the subset of the state which is persisted on disk across restart). However sometimes it is possible that the configuration file is lost because of operation errors, disk failures, package upgrade scripts or configuration managers. In those cases a way to to force Sentinel to rewrite the configuration file is handy. This command works even if the previous configuration file is completely missing.
callable
$this
getMasterAddrByName( $arg0, $arg1) : $this
If a failover is in progress or terminated successfully for this master it returns the address and port of the promoted slave
string
callable
$this
master( $arg0, $arg1) : $this
string
callable
$this
masters( $arg0) : $this
callable
$this
reset( $arg0, $arg1) : $this
The pattern argument is a glob-style pattern. The reset process clears any previous state in a master (including a failover in pro
string
callable
$this
sentinels( $arg0, $arg1) : $this
string
callable
$this
slaves( $arg0, $arg1) : $this
string
callable
$this