Class StorageStrategy


  • public class StorageStrategy
    extends java.lang.Object
    Represents a storage strategy (that may be mapped from Json but not exclusively)
    • Constructor Detail

      • StorageStrategy

        public StorageStrategy()
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns:
        the id
      • setId

        public void setId​(java.lang.String id)
        Parameters:
        id - of host storage
      • getOffers

        public java.util.List<OfferReference> getOffers()
        Returns:
        the list of offer references
      • getCopy

        public java.lang.Integer getCopy()
      • postInit

        public void postInit()
        remove (after init) inactive offerReferences
      • isStorageOfferEnabled

        public boolean isStorageOfferEnabled​(java.lang.String offerId)
        check whether storage offer is enabled (not present means disabled because postInit() method can filter it)
        Parameters:
        offerId - storageOfferId to check
        Returns:
      • isStorageOfferReferent

        public boolean isStorageOfferReferent​(java.lang.String offerId)