示例#1
0
  /**
   * Broadcast informtion's of the remote-container (OS etc.) to all remote-container of this
   * platform.
   *
   * @param slices the slices
   * @param crcReply the ClientRemoteContainerReply
   * @throws ServiceException the service exception
   */
  private void broadcastPutContainerDescription(
      Service.Slice[] slices, ClientRemoteContainerReply crcReply) throws ServiceException {

    logger.debug("Sending remote container Information!");

    for (int i = 0; i < slices.length; i++) {
      String sliceName = null;
      try {
        LoadServiceSlice slice = (LoadServiceSlice) slices[i];
        sliceName = slice.getNode().getName();
        logger.debug("Try sending remote container Information to " + sliceName);

        slice.putContainerDescription(crcReply);
      } 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 try to send container information to " + sliceName, t);
      }
    }
  }