Package step.functions.type
Class AbstractFunctionType<T extends Function>
- java.lang.Object
-
- step.functions.type.AbstractFunctionType<T>
-
- Direct Known Subclasses:
AbstractScriptFunctionType
,CompositeFunctionType
,JMeterFunctionType
,NodeFunctionType
public abstract class AbstractFunctionType<T extends Function> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FileResolver
fileResolver
protected com.google.common.cache.LoadingCache<String,File>
fileResolverCache
protected FunctionTypeConfiguration
functionTypeConfiguration
protected step.grid.GridFileService
gridFileServices
-
Constructor Summary
Constructors Constructor Description AbstractFunctionType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
beforeFunctionCall(T function, step.functions.io.Input<?> input, Map<String,String> properties)
T
copyFunction(T function)
void
deleteFunction(T function)
abstract String
getHandlerChain(T function)
step.grid.filemanager.FileVersionId
getHandlerPackage(T function)
abstract Map<String,String>
getHandlerProperties(T function)
Map<String,step.grid.tokenpool.Interest>
getTokenSelectionCriteria(T function)
protected void
init()
abstract T
newFunction()
protected step.grid.filemanager.FileVersionId
registerFile(File file)
protected void
registerFile(File file, String properyName, Map<String,String> props)
protected step.grid.filemanager.FileVersionId
registerFile(String filepath)
protected void
registerFile(DynamicValue<String> dynamicValue, String properyName, Map<String,String> props)
protected step.grid.filemanager.FileVersionId
registerResource(ClassLoader cl, String resourceName, boolean isDirectory)
protected void
setFileResolver(FileResolver fileResolver)
protected void
setFunctionTypeConfiguration(FunctionTypeConfiguration functionTypeConfiguration)
protected void
setGridFileServices(step.grid.GridFileService gridFileServices)
void
setupFunction(T function)
T
updateFunction(T function)
-
-
-
Field Detail
-
fileResolver
protected FileResolver fileResolver
-
gridFileServices
protected step.grid.GridFileService gridFileServices
-
functionTypeConfiguration
protected FunctionTypeConfiguration functionTypeConfiguration
-
-
Method Detail
-
setFunctionTypeConfiguration
protected void setFunctionTypeConfiguration(FunctionTypeConfiguration functionTypeConfiguration)
-
setFileResolver
protected void setFileResolver(FileResolver fileResolver)
-
setGridFileServices
protected void setGridFileServices(step.grid.GridFileService gridFileServices)
-
init
protected void init()
-
getTokenSelectionCriteria
public Map<String,step.grid.tokenpool.Interest> getTokenSelectionCriteria(T function)
-
getHandlerPackage
public step.grid.filemanager.FileVersionId getHandlerPackage(T function)
-
beforeFunctionCall
public void beforeFunctionCall(T function, step.functions.io.Input<?> input, Map<String,String> properties) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
newFunction
public abstract T newFunction()
-
setupFunction
public void setupFunction(T function) throws SetupFunctionException
- Throws:
SetupFunctionException
-
updateFunction
public T updateFunction(T function) throws FunctionTypeException
- Throws:
FunctionTypeException
-
copyFunction
public T copyFunction(T function) throws FunctionTypeException
- Throws:
FunctionTypeException
-
registerFile
protected void registerFile(DynamicValue<String> dynamicValue, String properyName, Map<String,String> props)
-
registerFile
protected step.grid.filemanager.FileVersionId registerFile(File file)
-
registerResource
protected step.grid.filemanager.FileVersionId registerResource(ClassLoader cl, String resourceName, boolean isDirectory)
-
registerFile
protected step.grid.filemanager.FileVersionId registerFile(String filepath)
-
deleteFunction
public void deleteFunction(T function) throws FunctionTypeException
- Throws:
FunctionTypeException
-
-