public class HotStrategy extends Object
| Constructor and Description |
|---|
HotStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCopy() |
List<OfferReference> |
getOffers() |
boolean |
isCopyValid()
Check if the number of copy is coherent with the number of offers
|
boolean |
isStorageOfferEnabled(String offerId)
check whether storage offer is enabled (not present means disabled because
postInit() method can filter it) |
void |
postInit()
remove (after init) inactive offerReferences and adjust the copy field
|
void |
setCopy(Integer copy) |
void |
setOffers(List<OfferReference> offers) |
public Integer getCopy()
public void setCopy(Integer copy)
copy - for host strategypublic List<OfferReference> getOffers()
public void setOffers(List<OfferReference> offers)
offers - list of OfferReferencepublic boolean isCopyValid()
public void postInit()
public boolean isStorageOfferEnabled(String offerId)
postInit() method can filter it)offerId - storageOfferId to checkCopyright © 2021 Vitam. All rights reserved.