public static FileSprayWorkunit get(Platform platform, String wuid) {
    if (wuid == null || wuid.isEmpty()) {
      return null;
    }

    return (FileSprayWorkunit) All.get(new FileSprayWorkunit(platform, wuid));
  }
Esempio n. 2
0
 /**
  * @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));
   }
 }
Esempio n. 3
0
 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));
 }
Esempio n. 4
0
 public static void remove(HPCCWsClient p) {
   All.remove(p);
 }
Esempio n. 5
0
 /**
  * @return provides HPCCWsWorkUnitsClient for direct method execution
  * @throws Exception
  */
 public HPCCWsWorkUnitsClient getWsWorkunitsClient() {
   synchronized (connectionLock) {
     return (HPCCWsWorkUnitsClient) SubClients.get(HPCCWsWorkUnitsClient.get(connection));
   }
 }
Esempio n. 6
0
 /**
  * @return provides HPCCECLDirectClient for direct method execution
  * @throws Exception
  */
 public HPCCECLDirectClient getEclDirectClient() {
   synchronized (connectionLock) {
     return (HPCCECLDirectClient) SubClients.get(HPCCECLDirectClient.get(connection));
   }
 }
Esempio n. 7
0
 /**
  * @return provides HPCCWsTopologyClient object for direct method execution
  * @throws Exception
  */
 public HPCCWsTopologyClient getWsTopologyClient() {
   synchronized (connectionLock) {
     return (HPCCWsTopologyClient) SubClients.get(HPCCWsTopologyClient.get(connection));
   }
 }
Esempio n. 8
0
 /**
  * @return provides fileSprayClient for direct method execution
  * @throws Exception
  */
 public HPCCFileSprayClient getFileSprayClient() {
   synchronized (connectionLock) {
     return (HPCCFileSprayClient) SubClients.get(HPCCFileSprayClient.get(connection));
   }
 }
Esempio n. 9
0
 public synchronized void updateConnection(Connection conn) {
   synchronized (connectionLock) {
     connection = conn;
     SubClients.clear();
   }
 }