Package com.privalia.qa.utils
Class ZookeeperSecUtils
- java.lang.Object
-
- com.privalia.qa.utils.ZookeeperSecUtils
-
public class ZookeeperSecUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ZookeeperSecUtils()
ZookeeperSecUtils(String hosts, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectZk()
void
delete(String path)
void
disconnect()
Boolean
exists(String path)
Boolean
isConnected()
void
setZookeeperSecConnection(String hosts, int timeout)
void
zCreate(String path, boolean isEphemeral)
void
zCreate(String path, String document, boolean isEphemeral)
String
zRead(String path)
-
-
-
Constructor Detail
-
ZookeeperSecUtils
public ZookeeperSecUtils()
-
ZookeeperSecUtils
public ZookeeperSecUtils(String hosts, int timeout)
-
-
Method Detail
-
connectZk
public void connectZk() throws InterruptedException
- Throws:
InterruptedException
-
zCreate
public void zCreate(String path, String document, boolean isEphemeral) throws Exception
- Throws:
Exception
-
isConnected
public Boolean isConnected()
-
disconnect
public void disconnect() throws InterruptedException
- Throws:
InterruptedException
-
setZookeeperSecConnection
public void setZookeeperSecConnection(String hosts, int timeout)
-
-