Package org.apache.hadoop.ipc
Class DefaultCostProvider
java.lang.Object
org.apache.hadoop.ipc.DefaultCostProvider
- All Implemented Interfaces:
CostProvider
Ignores process details and returns a constant value for each call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetCost(ProcessingDetails details) Returns 1, regardless of the processing details.voidinit(String namespace, Configuration conf) Initialize this provider using the given configuration, examining only ones which fall within the provided namespace.
-
Constructor Details
-
DefaultCostProvider
public DefaultCostProvider()
-
-
Method Details
-
init
Description copied from interface:CostProviderInitialize this provider using the given configuration, examining only ones which fall within the provided namespace.- Specified by:
initin interfaceCostProvider- Parameters:
namespace- The namespace to use when looking up configurations.conf- The configuration
-
getCost
Returns 1, regardless of the processing details.- Specified by:
getCostin interfaceCostProvider- Parameters:
details- Process details (ignored)- Returns:
- 1
-