public class KernelFunctionLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_COMPILED |
static String |
DOUBLE |
static String |
FLOAT |
static String |
FUNCTION_KEY |
static String |
NAME_SPACE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String functionName)
Returns whether the function has a kernel or not
|
String |
extract(String file)
Extract the resource ot the specified
absolute path
|
KernelLauncher |
get(String functionName,
String dataType)
Gets a kernel launcher
for a given function name and data type
|
static KernelFunctionLoader |
getInstance()
Singleton pattern
|
static KernelLauncher |
launcher(String functionName,
String dataType)
Get the launcher for a function
|
void |
load()
Load the appropriate functions from the class
path in to one module
|
void |
unload()
Clean up all the modules
|
public static final String NAME_SPACE
public static final String DOUBLE
public static final String FLOAT
public static final String CACHE_COMPILED
public static final String FUNCTION_KEY
public static KernelFunctionLoader getInstance()
public static KernelLauncher launcher(String functionName, String dataType)
functionName - the function to get the launcher fordataType - the data type to launch withpublic boolean exists(String functionName)
functionName - the name of the functionpublic KernelLauncher get(String functionName, String dataType)
functionName - the name of the functiondataType - the data type to getpublic void unload()
public void load()
throws Exception
Exceptionpublic String extract(String file) throws IOException
file - the fileIOExceptionCopyright © 2015. All Rights Reserved.