Package | Description |
---|---|
net.dempsy.cluster | |
net.dempsy.cluster.local | |
net.dempsy.cluster.zookeeper |
Modifier and Type | Class and Description |
---|---|
static class |
ClusterInfoException.NoNodeException |
static class |
ClusterInfoException.NoParentException |
Modifier and Type | Method and Description |
---|---|
ClusterInfoSession |
ClusterInfoSessionFactory.createSession() |
boolean |
ClusterInfoSession.exists(String path,
ClusterInfoWatcher watcher)
Check if a path has already been created.
|
Object |
ClusterInfoSession.getData(String path,
ClusterInfoWatcher watcher)
If data is stored at the node indicated by the path, then the data will be returned.
|
Collection<String> |
ClusterInfoSession.getSubdirs(String path,
ClusterInfoWatcher watcher)
Show all of the subdirectories of the given directory.
|
String |
ClusterInfoSession.mkdir(String path,
Object data,
DirMode mode)
This will create a node at the given path.
|
default String |
ClusterInfoSession.recursiveMkdir(String path,
Object data,
DirMode parentMode,
DirMode mode) |
void |
ClusterInfoSession.rmdir(String path)
This will remove the directory stored at the path.
|
void |
ClusterInfoSession.setData(String path,
Object data)
Set the data associated with the tree node identified by the path.
|
Modifier and Type | Method and Description |
---|---|
boolean |
LocalClusterSessionFactory.LocalSession.exists(String path,
ClusterInfoWatcher watcher) |
Object |
LocalClusterSessionFactory.LocalSession.getData(String path,
ClusterInfoWatcher watcher) |
Collection<String> |
LocalClusterSessionFactory.LocalSession.getSubdirs(String path,
ClusterInfoWatcher watcher) |
String |
LocalClusterSessionFactory.LocalSession.mkdir(String path,
Object data,
DirMode mode) |
void |
LocalClusterSessionFactory.LocalSession.rmdir(String path) |
void |
LocalClusterSessionFactory.LocalSession.setData(String path,
Object data) |
Modifier and Type | Method and Description |
---|---|
ClusterInfoSession |
ZookeeperSessionFactory.createSession() |
boolean |
ZookeeperSession.exists(String ppath,
ClusterInfoWatcher watcher) |
Object |
ZookeeperSession.getData(String ppath,
ClusterInfoWatcher watcher) |
Collection<String> |
ZookeeperSession.getSubdirs(String ppath,
ClusterInfoWatcher pwatcher) |
String |
ZookeeperSession.mkdir(String path,
Object data,
DirMode mode) |
void |
ZookeeperSession.rmdir(String ppath) |
void |
ZookeeperSession.setData(String ppath,
Object info) |
Copyright © 2018. All rights reserved.