Package step.functions.type
Class AbstractFunctionType<T extends step.functions.Function>
- java.lang.Object
-
- step.functions.type.AbstractFunctionType<T>
-
public abstract class AbstractFunctionType<T extends step.functions.Function> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected step.attachments.FileResolverfileResolverprotected com.google.common.cache.LoadingCache<String,File>fileResolverCacheprotected FunctionTypeConfigurationfunctionTypeConfigurationprotected step.grid.GridFileServicegridFileServices
-
Constructor Summary
Constructors Constructor Description AbstractFunctionType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbeforeFunctionCall(T function, step.functions.io.Input<?> input, Map<String,String> properties)TcopyFunction(T function)voiddeleteFunction(T function)abstract StringgetHandlerChain(T function)step.grid.filemanager.FileVersionIdgetHandlerPackage(T function)abstract Map<String,String>getHandlerProperties(T function)Map<String,step.grid.tokenpool.Interest>getTokenSelectionCriteria(T function)protected voidinit()abstract TnewFunction()protected step.grid.filemanager.FileVersionIdregisterFile(File file)protected voidregisterFile(File file, String properyName, Map<String,String> props)protected step.grid.filemanager.FileVersionIdregisterFile(String filepath)protected voidregisterFile(step.core.dynamicbeans.DynamicValue<String> dynamicValue, String properyName, Map<String,String> props)protected step.grid.filemanager.FileVersionIdregisterResource(ClassLoader cl, String resourceName, boolean isDirectory)protected voidregisterResource(ClassLoader cl, String resourceName, boolean isDirectory, String properyName, Map<String,String> props)protected voidsetFileResolver(step.attachments.FileResolver fileResolver)protected voidsetFunctionTypeConfiguration(FunctionTypeConfiguration functionTypeConfiguration)protected voidsetGridFileServices(step.grid.GridFileService gridFileServices)voidsetupFunction(T function)TupdateFunction(T function)
-
-
-
Field Detail
-
fileResolver
protected step.attachments.FileResolver fileResolver
-
gridFileServices
protected step.grid.GridFileService gridFileServices
-
functionTypeConfiguration
protected FunctionTypeConfiguration functionTypeConfiguration
-
-
Method Detail
-
setFunctionTypeConfiguration
protected void setFunctionTypeConfiguration(FunctionTypeConfiguration functionTypeConfiguration)
-
setFileResolver
protected void setFileResolver(step.attachments.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(step.core.dynamicbeans.DynamicValue<String> dynamicValue, String properyName, Map<String,String> props)
-
registerFile
protected step.grid.filemanager.FileVersionId registerFile(File file)
-
registerResource
protected void registerResource(ClassLoader cl, String resourceName, boolean isDirectory, String properyName, Map<String,String> props)
-
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
-
-