Exemplo n.º 1
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));
   }
 }
Exemplo n.º 2
0
 /**
  * Instantiates HPCCWsClient, communicates with HPCC over given protocol, and provides user/pass
  * credentials
  *
  * @param protocol - http | https
  * @param targetWsECLWatchAddress - The address of the WsECLWatch ESP on the Target HPCC System
  *     e.g. 192.168.1.100
  * @param targetWsECLWatchPort - The port on which WsECLWatch ESP is listening on the Target HPCC
  *     System usually 8010
  * @param username - ESP Username
  * @param password - ESP Password
  */
 protected HPCCWsClient(
     String protocol,
     String targetWsECLWatchAddress,
     String targetWsECLWatchPort,
     String username,
     String password) {
   connection = new Connection(protocol, targetWsECLWatchAddress, targetWsECLWatchPort);
   connection.setCredentials(username, password);
 }
Exemplo n.º 3
0
  public synchronized void update(
      String protocol,
      String targetWsECLWatchAddress,
      String targetWsECLWatchPort,
      String username,
      String password) {
    Connection newConnection =
        new Connection(protocol, targetWsECLWatchAddress, targetWsECLWatchPort);
    newConnection.setCredentials(username, password);

    updateConnection(newConnection);
  }