Package org.apache.curator.test
Class KillSession
java.lang.Object
org.apache.curator.test.KillSession
Utility to simulate a ZK session dying.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
kill
(org.apache.zookeeper.ZooKeeper client) Kill the given ZK sessionstatic void
Deprecated.static void
Deprecated.usekill(ZooKeeper)
instead
-
Constructor Details
-
KillSession
public KillSession()
-
-
Method Details
-
kill
public static void kill(org.apache.zookeeper.ZooKeeper client) Kill the given ZK session- Parameters:
client
- the client to kill- Since:
- 3.0.0
-
kill
public static void kill(org.apache.zookeeper.ZooKeeper client, String connectString) throws Exception Deprecated.usekill(ZooKeeper)
insteadKill the given ZK session- Parameters:
client
- the client to killconnectString
- server connection string- Throws:
Exception
- errors
-
kill
public static void kill(org.apache.zookeeper.ZooKeeper client, String connectString, int maxMs) throws Exception Deprecated.usekill(ZooKeeper)
insteadKill the given ZK session- Parameters:
client
- the client to killconnectString
- server connection stringmaxMs
- max time ms to wait for kill- Throws:
Exception
- errors
-
kill(ZooKeeper)
instead