Zookeeper::getState

(PECL zookeeper >= 0.1.0)

Zookeeper::getStateGet the state of the zookeeper connection

说明

public Zookeeper::getState ( void ) : int

返回值

Returns the state of zookeeper connection on success, and false on failure.

错误/异常

This method emits PHP error/warning when it fails to get state of zookeeper connection.

Caution

Since version 0.3.0, this method emits ZookeeperException and it's derivatives.

参见

相关文章
php eventbufferevent returns the name of the protocol used for current ssl connectionphp eventhttpconnection makes an http request over the specified connectionphp cubrid 函数 get auto commit mode of the connectionphp ibm db2 函数 returns or sets the autocommit state for a database connectionphp frontbase 函数 get or set the host name used with a connectionphp ingres 函数 close an ingres database connectionphp kadm5 函数 opens a connection to the kadm5 libraryphp maxdb 函数 changes the user of the specified database connectionphp mysqlnduhconnection changes the user of the specified mysqlnd database connectionphp parallel future state detectionphp sam 函数 establishes a connection to a messaging serverphp solrquery returns the state of the hl.usephrasehighlighter parameterphp sphinxclient set connection timeoutphp stomp closes stomp connectionphp swoole connection iterator unset an offset.php zookeeper return the client session id only valid if the connections is currently connected ie. last watcher state is zoo connected state php zookeeper return the timeout for this session only valid if the connections is currently connected ie. last watcher state is zoo connected state . this value may change after a server re connectphp zookeeper get the state of the zookeeper connectionphp zookeeper checks if the current zookeeper connection state can be recoveredphp zookeeperconfig gets the last committed configuration of the zookeeper cluster as it is known to the server to which the client is connected synchronously
关注编程学问公众号