Class KillSession

java.lang.Object
org.apache.curator.test.KillSession

public class KillSession extends Object

Utility to simulate a ZK session dying.

  • 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.
      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