示例#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");
  }
示例#2
0
  /**
   * Returns all the available cluster groups (hthor, thor, roxie, etc.) on the target HPCC System.
   *
   * @return - The available cluster groups (hthor, thor, roxie, etc.) on the target HPCC System.
   * @throws Exception
   */
  public String[] getAvailableClusterGroups() throws Exception {
    HPCCWsTopologyClient hpccWsTopologyClient = HPCCWsTopologyClient.get(connection);

    try {
      if (hpccWsTopologyClient != null) return hpccWsTopologyClient.getValidTargetGroupNames();
      else throw new Exception("Could not initialize HPCC WsTopology Client");
    } catch (Exception e) {
      e.printStackTrace();
    }

    return null;
  }
示例#3
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");
  }
示例#4
0
 /**
  * @return provides HPCCWsTopologyClient object for direct method execution
  * @throws Exception
  */
 public HPCCWsTopologyClient getWsTopologyClient() {
   synchronized (connectionLock) {
     return (HPCCWsTopologyClient) SubClients.get(HPCCWsTopologyClient.get(connection));
   }
 }
示例#5
0
 /**
  * Reports the version of the original WSDL used to create the HPCCWsTopologyClient logic.
  *
  * @return Original WSDL version
  */
 public String getWsTopologyClientVer() {
   return Utils.parseVersionFromWSDLURL(HPCCWsTopologyClient.getOriginalWSDLURL());
 }