code: public void endJob(String targetCluster) throws ExecutionException {
          getConnection(targetCluster).setJobInProgress(false);
          logger.info("a new job has been finished in cluster [" + targetCluster + "]");
      }
docs: This method finalize a work for a connections.
  
  @param targetCluster the connections cluster name.
  @throws ExecutionException if the work can not finish.