|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.lib.ZKClient
public class ZKClient
ZK Registration Library currently does not use any authorization
| Constructor Summary | |
|---|---|
ZKClient(String string)
the zookeeper client library to talk to zookeeper |
|
| Method Summary | |
|---|---|
String |
getServiceData(String path)
get data published by the service at the registration address |
List<String> |
listServices(String path)
list the services registered under a path |
void |
registerService(String path,
String data)
register the service to a specific path |
void |
unregisterService(String path)
unregister the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZKClient(String string)
throws IOException
string - the host
throws - IOException
IOException| Method Detail |
|---|
public void registerService(String path,
String data)
throws IOException,
InterruptedException
path - the path in zookeeper namespace to register todata - the data that is part of this registration
IOException
InterruptedException
public void unregisterService(String path)
throws IOException,
InterruptedException
path - the path at which the service was registered
IOException
InterruptedException
public List<String> listServices(String path)
throws IOException,
InterruptedException
path - the path under which services are
registered
IOException
InterruptedException
public String getServiceData(String path)
throws IOException,
InterruptedException
path - the path where the service is registered
IOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||