java.lang.Object
fr.gouv.vitam.storage.engine.server.distribution.impl.OffersToCopyIn

public class OffersToCopyIn extends Object
manage list ok and ko for retry storage feature
  • Constructor Details

    • OffersToCopyIn

      public OffersToCopyIn(List<StorageOffer> storageOffers)
      * create OffersToCopyIn lists
      Parameters:
      storageOffers -
  • Method Details

    • getOkOffers

      public List<String> getOkOffers()
      Get OK offers list
      Returns:
      the ok offers list
    • getKoOffers

      public List<String> getKoOffers()
      Get the KO offers list
      Returns:
      the KO offers list
    • getGlobalOfferResult

      public Map<String,javax.ws.rs.core.Response.Status> getGlobalOfferResult()
      Get global result for storage distribution
      Returns:
      the map of global transfer result
    • koListToOkList

      public void koListToOkList(String offerId)
      Pass offerId fro KO offers list to OK offers list
      Parameters:
      offerId - the offerId
    • changeStatus

      public void changeStatus(String offerId, javax.ws.rs.core.Response.Status status)
      Change the status of an offer id transfer
      Parameters:
      offerId - the offerId
      status - the response status to set
    • getReadRequestID

      public String getReadRequestID()
    • setReadRequestID

      public void setReadRequestID(String readRequestID)
    • setReadOrderCompleted

      public void setReadOrderCompleted(boolean readOrderCompleted)
    • isReadOrderCompleted

      public boolean isReadOrderCompleted()