Class OffersToCopyIn


  • public class OffersToCopyIn
    extends java.lang.Object
    manage list ok and ko for retry storage feature
    • Constructor Summary

      Constructors 
      Constructor Description
      OffersToCopyIn​(java.util.List<StorageOffer> storageOffers)
      * create OffersToCopyIn lists
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void changeStatus​(java.lang.String offerId, javax.ws.rs.core.Response.Status status)
      Change the status of an offer id transfer
      java.util.Map<java.lang.String,​javax.ws.rs.core.Response.Status> getGlobalOfferResult()
      Get global result for storage distribution
      java.util.List<java.lang.String> getKoOffers()
      Get the KO offers list
      java.util.List<java.lang.String> getOkOffers()
      Get OK offers list
      java.lang.String getReadRequestID()  
      boolean isReadOrderCompleted()  
      void koListToOkList​(java.lang.String offerId)
      Pass offerId fro KO offers list to OK offers list
      void setReadOrderCompleted​(boolean readOrderCompleted)  
      void setReadRequestID​(java.lang.String readRequestID)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OffersToCopyIn

        public OffersToCopyIn​(java.util.List<StorageOffer> storageOffers)
        * create OffersToCopyIn lists
        Parameters:
        storageOffers -
    • Method Detail

      • getOkOffers

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

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

        public java.util.Map<java.lang.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​(java.lang.String offerId)
        Pass offerId fro KO offers list to OK offers list
        Parameters:
        offerId - the offerId
      • changeStatus

        public void changeStatus​(java.lang.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 java.lang.String getReadRequestID()
      • setReadRequestID

        public void setReadRequestID​(java.lang.String readRequestID)
      • setReadOrderCompleted

        public void setReadOrderCompleted​(boolean readOrderCompleted)
      • isReadOrderCompleted

        public boolean isReadOrderCompleted()