Class OffersToCopyIn
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.server.distribution.impl.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 transferjava.util.Map<java.lang.String,javax.ws.rs.core.Response.Status>
getGlobalOfferResult()
Get global result for storage distributionjava.util.List<java.lang.String>
getKoOffers()
Get the KO offers listjava.util.List<java.lang.String>
getOkOffers()
Get OK offers listjava.lang.String
getReadRequestID()
boolean
isReadOrderCompleted()
void
koListToOkList(java.lang.String offerId)
Pass offerId fro KO offers list to OK offers listvoid
setReadOrderCompleted(boolean readOrderCompleted)
void
setReadRequestID(java.lang.String readRequestID)
-
-
-
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 offerIdstatus
- 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()
-
-