org.gcube.datatransformation.datatransformationlibrary
Class ProgramExecutor
java.lang.Object
org.gcube.datatransformation.datatransformationlibrary.ProgramExecutor
public class ProgramExecutor
- extends java.lang.Object
- Author:
- Dimitris Katris, NKUA
Loads dynamically and executes a
Program.
|
Method Summary |
static void |
initializeDeployer(java.lang.String DTS_LIBS_PATH)
Initializes the DTSProgramDeployer. |
static void |
transformDataWithProgram(java.util.ArrayList<org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource> sources,
org.gcube.datatransformation.datatransformationlibrary.model.Transformer transformer,
java.util.List<org.gcube.datatransformation.datatransformationlibrary.model.Parameter> programParameters,
org.gcube.datatransformation.datatransformationlibrary.model.ContentType targetContentType,
org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink sink)
Loads and executes the Program contained in the Transformer. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProgramExecutor
public ProgramExecutor()
initializeDeployer
public static void initializeDeployer(java.lang.String DTS_LIBS_PATH)
throws java.lang.Exception
- Initializes the
DTSProgramDeployer.
- Parameters:
DTS_LIBS_PATH - The path in which the deployer will put the Program's jar files.
- Throws:
java.lang.Exception - If an error occurs in initialization of the DTSProgramDeployer.
transformDataWithProgram
public static void transformDataWithProgram(java.util.ArrayList<org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource> sources,
org.gcube.datatransformation.datatransformationlibrary.model.Transformer transformer,
java.util.List<org.gcube.datatransformation.datatransformationlibrary.model.Parameter> programParameters,
org.gcube.datatransformation.datatransformationlibrary.model.ContentType targetContentType,
org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink sink)
throws java.lang.Exception
- Loads and executes the
Program contained in the Transformer.
- Parameters:
sources - The DataSources from which the Program will get DataElements.transformer - The Transformer which contains the Program that will execute the transformationUnit.programParameters - The Parameters which will be passed to the Program.targetContentType - The ContentType to which the Program will transform the DataElements.sink - The DataSink in which the Program will store the transformed DataElements.
- Throws:
java.lang.Exception - If an error occurred in loading the Program.