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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected step.attachments.FileResolverfileResolverprotected com.google.common.cache.LoadingCache<java.lang.String,java.io.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, java.util.Map<java.lang.String,java.lang.String> properties)TcopyFunction(T function)voiddeleteFunction(T function)abstract java.lang.StringgetHandlerChain(T function)step.grid.filemanager.FileVersionIdgetHandlerPackage(T function)abstract java.util.Map<java.lang.String,java.lang.String>getHandlerProperties(T function)java.util.Map<java.lang.String,step.grid.tokenpool.Interest>getTokenSelectionCriteria(T function)protected voidinit()abstract TnewFunction()protected step.grid.filemanager.FileVersionIdregisterFile(java.io.File file)protected voidregisterFile(java.io.File file, java.lang.String properyName, java.util.Map<java.lang.String,java.lang.String> props)protected step.grid.filemanager.FileVersionIdregisterFile(java.lang.String filepath)protected voidregisterFile(step.core.dynamicbeans.DynamicValue<java.lang.String> dynamicValue, java.lang.String properyName, java.util.Map<java.lang.String,java.lang.String> props)protected step.grid.filemanager.FileVersionIdregisterResource(java.lang.ClassLoader cl, java.lang.String resourceName, boolean isDirectory)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
-
fileResolverCache
protected com.google.common.cache.LoadingCache<java.lang.String,java.io.File> fileResolverCache
-
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 java.util.Map<java.lang.String,step.grid.tokenpool.Interest> getTokenSelectionCriteria(T function)
-
getHandlerChain
public abstract java.lang.String getHandlerChain(T function)
-
getHandlerPackage
public step.grid.filemanager.FileVersionId getHandlerPackage(T function)
-
getHandlerProperties
public abstract java.util.Map<java.lang.String,java.lang.String> getHandlerProperties(T function)
-
beforeFunctionCall
public void beforeFunctionCall(T function, step.functions.io.Input<?> input, java.util.Map<java.lang.String,java.lang.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<java.lang.String> dynamicValue, java.lang.String properyName, java.util.Map<java.lang.String,java.lang.String> props)
-
registerFile
protected void registerFile(java.io.File file, java.lang.String properyName, java.util.Map<java.lang.String,java.lang.String> props)
-
registerFile
protected step.grid.filemanager.FileVersionId registerFile(java.io.File file)
-
registerResource
protected step.grid.filemanager.FileVersionId registerResource(java.lang.ClassLoader cl, java.lang.String resourceName, boolean isDirectory)
-
registerFile
protected step.grid.filemanager.FileVersionId registerFile(java.lang.String filepath)
-
deleteFunction
public void deleteFunction(T function) throws FunctionTypeException
- Throws:
FunctionTypeException
-
-