Ejemplo n.º 1
0
  /**
   * Returns all the available target cluster names (mythor, myroxie, etc) given a cluster group
   * type/name (thor, roxie, etc.)
   *
   * @param clusterGroupType - The cluster group type/name
   * @return - Names of all availabe target cluster in the given cluster group
   * @throws Exception
   */
  public String[] getAvailableClusterNames(String clusterGroupType) throws Exception {
    HPCCWsTopologyClient wsTopologyClient = getWsTopologyClient();

    if (wsTopologyClient != null)
      return wsTopologyClient.getValidTargetClusterNames(clusterGroupType);
    else throw new Exception("Could not initialize HPCC WsTopology Client");
  }
Ejemplo n.º 2
0
  /**
   * @return - List of all available target cluster names (mythor, myroxie, etc) on this HPCC System
   * @throws Exception
   */
  public List<String> getAvailableTargetClusterNames() throws Exception {
    HPCCWsTopologyClient wsTopologyClient = getWsTopologyClient();

    if (wsTopologyClient != null) return wsTopologyClient.getValidTargetClusterNames();
    else throw new Exception("Could not initialize HPCC WsTopology Client");
  }