private void getTasks() {
    LOG.info("Getting Tasks for Agent: " + agentName + "and setting watch for new Tasks");
    zk.getChildren(ChaosConstants.CHAOS_AGENT_STATUS_PERSISTENT_ZNODE
      + ChaosConstants.ZNODE_PATH_SEPARATOR + agentName, newTaskCreatedWatcher,
      getTasksForAgentCallback, null);
  }
Gets tasks for execution, basically sets Watch on it's respective host's Znode and waits for
tasks to be assigned, also has a getTasksForAgentCallback which handles execution of task.
hbase-it/src/main/java/org/apache/hadoop/hbase/chaos/ChaosAgent.java