public class KillSession extends Object
Utility to simulate a ZK session dying.
Constructor and Description |
---|
KillSession() |
Modifier and Type | Method and Description |
---|---|
static void |
kill(org.apache.zookeeper.ZooKeeper client)
Kill the given ZK session
|
static void |
kill(org.apache.zookeeper.ZooKeeper client,
String connectString)
Deprecated.
use
kill(ZooKeeper) instead |
static void |
kill(org.apache.zookeeper.ZooKeeper client,
String connectString,
int maxMs)
Deprecated.
use
kill(ZooKeeper) instead |
public static void kill(org.apache.zookeeper.ZooKeeper client)
client
- the client to killpublic static void kill(org.apache.zookeeper.ZooKeeper client, String connectString) throws Exception
kill(ZooKeeper)
insteadclient
- the client to killconnectString
- server connection stringException
- errorspublic static void kill(org.apache.zookeeper.ZooKeeper client, String connectString, int maxMs) throws Exception
kill(ZooKeeper)
insteadclient
- the client to killconnectString
- server connection stringmaxMs
- max time ms to wait for killException
- errorsCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.