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 Summary
ConstructorsConstructorDescriptionTestExecutorClient(org.apache.curator.framework.CuratorFramework client, String path, Map<String, String> params, ToolWrapper tool) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidbooleanisDone()voidstart()voidstateChanged(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.state.ConnectionState newState) voidtakeLeadership(org.apache.curator.framework.CuratorFramework client) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.curator.framework.state.ConnectionStateListener
doNotProxy
-
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
start
public void start() -
takeLeadership
- Specified by:
takeLeadershipin interfaceorg.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:
stateChangedin interfaceorg.apache.curator.framework.state.ConnectionStateListener- Overrides:
stateChangedin classorg.apache.curator.framework.recipes.leader.LeaderSelectorListenerAdapter
-
executeQueryServerCanaryTool
public void executeQueryServerCanaryTool() -
isDone
public boolean isDone()
-