public abstract class AbstractFunctionType<T extends step.functions.Function> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FileResolver |
fileResolver |
protected com.google.common.cache.LoadingCache<String,File> |
fileResolverCache |
protected FunctionTypeConfiguration |
functionTypeConfiguration |
protected step.grid.GridFileService |
gridFileServices |
| Constructor and Description |
|---|
AbstractFunctionType() |
| Modifier and Type | Method and 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 void |
registerFile(DynamicValue<String> dynamicValue,
String properyName,
Map<String,String> props) |
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 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) |
protected FileResolver fileResolver
protected step.grid.GridFileService gridFileServices
protected FunctionTypeConfiguration functionTypeConfiguration
protected void setFunctionTypeConfiguration(FunctionTypeConfiguration functionTypeConfiguration)
protected void setFileResolver(FileResolver fileResolver)
protected void setGridFileServices(step.grid.GridFileService gridFileServices)
protected void init()
public Map<String,step.grid.tokenpool.Interest> getTokenSelectionCriteria(T function)
public step.grid.filemanager.FileVersionId getHandlerPackage(T function)
public void beforeFunctionCall(T function, step.functions.io.Input<?> input, Map<String,String> properties) throws FunctionExecutionException
FunctionExecutionExceptionpublic abstract T newFunction()
public void setupFunction(T function) throws SetupFunctionException
SetupFunctionExceptionpublic T updateFunction(T function) throws FunctionTypeException
FunctionTypeExceptionpublic T copyFunction(T function) throws FunctionTypeException
FunctionTypeExceptionprotected void registerFile(DynamicValue<String> dynamicValue, String properyName, Map<String,String> props)
protected step.grid.filemanager.FileVersionId registerFile(File file)
protected step.grid.filemanager.FileVersionId registerResource(ClassLoader cl, String resourceName, boolean isDirectory)
protected step.grid.filemanager.FileVersionId registerFile(String filepath)
public void deleteFunction(T function) throws FunctionTypeException
FunctionTypeExceptionCopyright © 2020. All rights reserved.