Class MpParameterProvider

java.lang.Object
pl.decerto.hyperon.runtime.provider.MpParameterProvider
All Implemented Interfaces:
ParamRepository

public class MpParameterProvider extends Object implements ParamRepository
Author:
przemek hertel
  • Constructor Details

  • Method Details

    • load

      public Parameter load(String uid)
      Description copied from interface: ParamRepository
      Load parameter. If parameter is not cacheable, this method should return only metadata (parameter object with empty entry set). Parameter query evaluation should be done using ParamRepository.findEntries(int, String[][]) method.
      Specified by:
      load in interface ParamRepository
      Parameters:
      uid - unique name
      Returns:
      parameter
    • getLastUpdate

      public Date getLastUpdate()
    • getLastUpdate

      public Date getLastUpdate(boolean developerMode)
    • getAllLastUpdates

      public List<Trackable> getAllLastUpdates(boolean developerMode)
    • findEntries

      public Collection<ParameterEntry> findEntries(int pid, String[][] inputLevels)
      Description copied from interface: ParamRepository
      Return set of entries from parameter that match provided query values. Repository has to do the matching by its own means. Implementation of this method is optional, should return null if not supported.
      Specified by:
      findEntries in interface ParamRepository
      Parameters:
      pid - parameter identifier
      inputLevels - query (level) values
      Returns:
      set of entries or null if either not found or not supported
    • batchLoad

      public ParameterBatchLoader batchLoad(String parameterName)
      Description copied from interface: ParamRepository
      Support for batch loading of parameter, when there are too many entries to read them all at once.
      Specified by:
      batchLoad in interface ParamRepository
      Parameters:
      parameterName - name of parameter
      Returns:
      metadata + batch loader of entries
    • listParameters

      public Set<String> listParameters()
      Description copied from interface: ParamRepository
      Returns set of all parameter names kept in this repository.
      Specified by:
      listParameters in interface ParamRepository
      Returns:
      parameter names
    • getNumberOfLoadsInProgress

      public int getNumberOfLoadsInProgress()