Interface CostProvider

All Known Implementing Classes:
DefaultCostProvider, WeightedTimeCostProvider

public interface CostProvider
Used by DecayRpcScheduler to get the cost of users' operations. This is configurable using CommonConfigurationKeys.IPC_COST_PROVIDER_KEY.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get cost from ProcessingDetails which will be used in scheduler.
    void
    init(String namespace, Configuration conf)
    Initialize this provider using the given configuration, examining only ones which fall within the provided namespace.
  • Method Details

    • init

      void init(String namespace, Configuration conf)
      Initialize this provider using the given configuration, examining only ones which fall within the provided namespace.
      Parameters:
      namespace - The namespace to use when looking up configurations.
      conf - The configuration
    • getCost

      long getCost(ProcessingDetails details)
      Get cost from ProcessingDetails which will be used in scheduler.
      Parameters:
      details - Process details
      Returns:
      The cost of the call