Class KillSession


  • public class KillSession
    extends Object

    Utility to simulate a ZK session dying.

    • Constructor Detail

      • KillSession

        public KillSession()
    • Method Detail

      • 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.
        use kill(ZooKeeper) instead
        Kill the given ZK session
        Parameters:
        client - the client to kill
        connectString - server connection string
        Throws:
        Exception - errors
      • kill

        public static void kill​(org.apache.zookeeper.ZooKeeper client,
                                String connectString,
                                int maxMs)
                         throws Exception
        Deprecated.
        use kill(ZooKeeper) instead
        Kill the given ZK session
        Parameters:
        client - the client to kill
        connectString - server connection string
        maxMs - max time ms to wait for kill
        Throws:
        Exception - errors