/** * 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"); }
/** * 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; }
/** * @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"); }
/** * @return provides HPCCWsTopologyClient object for direct method execution * @throws Exception */ public HPCCWsTopologyClient getWsTopologyClient() { synchronized (connectionLock) { return (HPCCWsTopologyClient) SubClients.get(HPCCWsTopologyClient.get(connection)); } }
/** * 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()); }