Package step.artefacts.handlers
Class DefaultFunctionRouterImpl
java.lang.Object
step.artefacts.handlers.DefaultFunctionRouterImpl
- All Implemented Interfaces:
FunctionRouter
-
Field Summary
Modifier and TypeFieldDescriptionprotected final step.grid.tokenpool.SimpleAffinityEvaluator<step.grid.tokenpool.Identity,
step.grid.tokenpool.Identity> protected final FunctionExecutionService
protected final FunctionTypeRegistry
protected final TokenSelectorHelper
-
Constructor Summary
ConstructorDescriptionDefaultFunctionRouterImpl
(FunctionExecutionService functionClient, FunctionTypeRegistry functionTypeRegistry, DynamicJsonObjectResolver dynamicJsonObjectResolver) -
Method Summary
Modifier and TypeMethodDescriptionbuildSelectionCriteriaMap
(CallFunction callFunction, Function function, FunctionGroupHandler.FunctionGroupContext functionGroupContext, Map<String, Object> bindings) protected step.grid.tokenpool.Identity
step.grid.TokenWrapper
selectToken
(CallFunction callFunction, Function function, FunctionGroupHandler.FunctionGroupContext functionGroupContext, Map<String, Object> bindings, step.grid.TokenWrapperOwner tokenWrapperOwner)
-
Field Details
-
tokenSelectorHelper
-
functionExecutionService
-
functionTypeRegistry
-
affinityEvaluator
protected final step.grid.tokenpool.SimpleAffinityEvaluator<step.grid.tokenpool.Identity,step.grid.tokenpool.Identity> affinityEvaluator
-
-
Constructor Details
-
DefaultFunctionRouterImpl
public DefaultFunctionRouterImpl(FunctionExecutionService functionClient, FunctionTypeRegistry functionTypeRegistry, DynamicJsonObjectResolver dynamicJsonObjectResolver)
-
-
Method Details
-
selectToken
public step.grid.TokenWrapper selectToken(CallFunction callFunction, Function function, FunctionGroupHandler.FunctionGroupContext functionGroupContext, Map<String, Object> bindings, step.grid.TokenWrapperOwner tokenWrapperOwner) throws FunctionExecutionServiceException- Specified by:
selectToken
in interfaceFunctionRouter
- Throws:
FunctionExecutionServiceException
-
identity
-
buildSelectionCriteriaMap
protected Map<String,step.grid.tokenpool.Interest> buildSelectionCriteriaMap(CallFunction callFunction, Function function, FunctionGroupHandler.FunctionGroupContext functionGroupContext, Map<String, Object> bindings)
-