public static FileSprayWorkunit get(Platform platform, String wuid) { if (wuid == null || wuid.isEmpty()) { return null; } return (FileSprayWorkunit) All.get(new FileSprayWorkunit(platform, wuid)); }
/** * @return provides fileSprayClient for direct method execution * @throws Exception */ public HPCCWsAttributesClient getWsAttributesClient(String wsAttributesPort) { synchronized (connectionLock) { Connection tempConn = new Connection(connection.getProtocol(), connection.getHost(), wsAttributesPort); tempConn.setCredentials(connection.getUserName(), connection.getPassword()); return (HPCCWsAttributesClient) SubClients.get(HPCCWsAttributesClient.get(tempConn)); } }
public static HPCCWsClient getNoCreate( String protocol, String targetWsECLWatchAddress, int targetWsECLWatchPort, String user, String password) { return (HPCCWsClient) All.getNoCreate( new HPCCWsClient( protocol, targetWsECLWatchAddress, Integer.toString(targetWsECLWatchPort), user, password)); }
public static void remove(HPCCWsClient p) { All.remove(p); }
/** * @return provides HPCCWsWorkUnitsClient for direct method execution * @throws Exception */ public HPCCWsWorkUnitsClient getWsWorkunitsClient() { synchronized (connectionLock) { return (HPCCWsWorkUnitsClient) SubClients.get(HPCCWsWorkUnitsClient.get(connection)); } }
/** * @return provides HPCCECLDirectClient for direct method execution * @throws Exception */ public HPCCECLDirectClient getEclDirectClient() { synchronized (connectionLock) { return (HPCCECLDirectClient) SubClients.get(HPCCECLDirectClient.get(connection)); } }
/** * @return provides HPCCWsTopologyClient object for direct method execution * @throws Exception */ public HPCCWsTopologyClient getWsTopologyClient() { synchronized (connectionLock) { return (HPCCWsTopologyClient) SubClients.get(HPCCWsTopologyClient.get(connection)); } }
/** * @return provides fileSprayClient for direct method execution * @throws Exception */ public HPCCFileSprayClient getFileSprayClient() { synchronized (connectionLock) { return (HPCCFileSprayClient) SubClients.get(HPCCFileSprayClient.get(connection)); } }
public synchronized void updateConnection(Connection conn) { synchronized (connectionLock) { connection = conn; SubClients.clear(); } }