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 swoole the swoole connection iterator classphp zookeeper the zookeepermarshallingexception classphp componere definition state detectionphp ibm db2 函数 returns or sets the autocommit state for a database connectionphp eio 函数 synchronize a file s in core state with storage devicephp frontbase 函数 open a persistent connection to a frontbase serverphp frontbase 函数 get or set the username for the connectionphp ingres 函数 open a persistent connection to an ingres databasephp mcve 函数 set blocking/non blocking mode for connectionphp maxdb 函数 escapes special characters in a string for use in an sql statement taking into account the current charset of the connectionphp sqlsrv 函数 closes an open connection and releases resourses associated with the connectionphp mysqli open a new connection to the mysql serverphp sqlite3 sets the busy connection handlerphp swoole connection iterator count connections.php zookeeper create a handle to used communicate with zookeeperphp 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 zookeeper sets the acl associated with a node synchronously
关注编程学问公众号