Ejemplo n.º 1
0
  /**
   * Broadcast to start a new remote-container for this platform.
   *
   * @param containerName2Wait4 the container name2 wait4
   * @return the container2 wait4
   * @throws ServiceException the service exception
   */
  private Container2Wait4 broadcastGetNewContainer2Wait4Status(String containerName2Wait4)
      throws ServiceException {
    logger.debug("Start a new remote container!");

    String sliceName = null;
    try {
      LoadServiceSlice slice = (LoadServiceSlice) getSlice(MAIN_SLICE);
      sliceName = slice.getNode().getName();
      logger.debug("Try to start a new remote container " + sliceName);
      return slice.getNewContainer2Wait4Status(containerName2Wait4);
    } catch (ServiceException | IMTPException t) {
      // NOTE that slices are always retrieved from the main and not from the cache --> No need to
      // retry in case of failure
      logger.warn("Error while starting a new remote-container from " + sliceName, t);
    }
    return null;
  }