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

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