forked from andreiz/php-zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzookeeper-api.php
58 lines (30 loc) · 1.39 KB
/
zookeeper-api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Zookeeper class.
*/
class Zookeeper {
/* if host is provided, attempt to connect */
public function __construct( $host = '', $watcher_cb = null, $recv_timeout = 10000) {}
public function connect( $host, $watcher_cb = null, $recv_timeout = 10000) {}
public function create( $host, $watcher_cb = null, $recv_timeout = 10000) {}
public function create( $path, $value, $acl, $flags = null ) {}
public function delete( $path, $version = -1 ) {}
public function set( $path, $data, $version = -1, &$stat = null ) {}
public function get( $path, $watcher_cb = null, &$stat = null, $max_size = 0) {}
public function getChildren( $path, $watcher_cb = null ) {}
public function exists( $path, $watcher_cb = null ) {}
public function getAcl( $path ) {}
public function setAcl( $path, $version, $acls ) {}
public function getClientId( ) {}
public function setWatcher( $watcher_cb ) {}
public function getState( ) {}
public function getRecvTimeout( ) {}
public function addAuth( $scheme, $cert, $completion_cb = null ) {}
public function isRecoverable( ) {}
public function setLogFile( $file ) {} // TODO: might be able to set a stream like php://stderr or something
public function close( ) {}
public function getResultMessage( ) {}
// static methods
static public function setDebugLevel( $level ) {}
static public function setDeterministicConnOrder( $trueOrFalse ) {}
}