Class TestExecutorClient

java.lang.Object
org.apache.curator.framework.recipes.leader.LeaderSelectorListenerAdapter
org.apache.phoenix.queryserver.orchestrator.TestExecutorClient
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.curator.framework.recipes.leader.LeaderSelectorListener, org.apache.curator.framework.state.ConnectionStateListener

public class TestExecutorClient extends org.apache.curator.framework.recipes.leader.LeaderSelectorListenerAdapter implements Closeable
  • Constructor Details

    • TestExecutorClient

      public TestExecutorClient(org.apache.curator.framework.CuratorFramework client, String path, Map<String,String> params, ToolWrapper tool)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • start

      public void start()
    • takeLeadership

      public void takeLeadership(org.apache.curator.framework.CuratorFramework client) throws Exception
      Specified by:
      takeLeadership in interface org.apache.curator.framework.recipes.leader.LeaderSelectorListener
      Throws:
      Exception
    • stateChanged

      public void stateChanged(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.state.ConnectionState newState)
      Specified by:
      stateChanged in interface org.apache.curator.framework.state.ConnectionStateListener
      Overrides:
      stateChanged in class org.apache.curator.framework.recipes.leader.LeaderSelectorListenerAdapter
    • executeQueryServerCanaryTool

      public void executeQueryServerCanaryTool()
    • isDone

      public boolean isDone()