Package org.apache.hadoop.ipc
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 TypeMethodDescriptionlonggetCost(ProcessingDetails details) Get cost fromProcessingDetailswhich will be used in scheduler.voidinit(String namespace, Configuration conf) Initialize this provider using the given configuration, examining only ones which fall within the provided namespace.
-
Method Details
-
init
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
Get cost fromProcessingDetailswhich will be used in scheduler.- Parameters:
details- Process details- Returns:
- The cost of the call
-