public class Unbundler extends java.lang.Object implements ExecutionAddon
Constructor and Description |
---|
Unbundler()
Instantiates a new unbundler.
|
Unbundler(ShiwaBundleHelper shiwaBundleHelper)
Instantiates a new unbundler.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
createOutputBundle(java.lang.String outputPath)
Creates the output bundle.
|
void |
execute(Exec execEngine,
TrianaInstance instance,
java.lang.String bundlePath,
java.lang.Object workflowObject,
java.lang.Object inputData,
java.lang.String[] args) |
void |
execute(TrianaInstance engine,
java.util.List<java.lang.String> pluginArguments) |
java.io.File |
getConfigFile() |
java.lang.String |
getDescription() |
java.lang.String |
getLongOption() |
java.util.ArrayList<java.io.File> |
getOutputFiles()
Gets the output files.
|
java.lang.String |
getServiceName() |
java.lang.String |
getShortOption() |
Tool |
getTool(TrianaInstance trianaInstance,
org.shiwa.desktop.data.description.SHIWABundle shiwaBundle)
Gets the tool.
|
Tool |
getTool(TrianaInstance instance,
java.lang.String workflowFilePath) |
java.lang.String |
getUsageString() |
void |
serializeOutputs(TaskGraph taskGraph)
Serialize outputs.
|
void |
setRuntimeOutputFolder(java.io.File outputFolder)
Sets the runtime output folder.
|
static void |
timeOutput(java.lang.String s)
Time output.
|
java.lang.String |
toString() |
public Unbundler()
public Unbundler(ShiwaBundleHelper shiwaBundleHelper)
shiwaBundleHelper
- the shiwa bundle helperpublic Tool getTool(TrianaInstance instance, java.lang.String workflowFilePath) throws java.io.IOException, TaskGraphException, ProxyInstantiationException, javax.xml.bind.JAXBException
getTool
in interface ExecutionAddon
java.io.IOException
TaskGraphException
ProxyInstantiationException
javax.xml.bind.JAXBException
public java.io.File getConfigFile() throws java.io.IOException
getConfigFile
in interface ExecutionAddon
java.io.IOException
public void execute(TrianaInstance engine, java.util.List<java.lang.String> pluginArguments) throws java.lang.Exception
execute
in interface ExecutionAddon
java.lang.Exception
public void execute(Exec execEngine, TrianaInstance instance, java.lang.String bundlePath, java.lang.Object workflowObject, java.lang.Object inputData, java.lang.String[] args) throws java.lang.Exception
execute
in interface ExecutionAddon
java.lang.Exception
public java.io.File createOutputBundle(java.lang.String outputPath) throws java.io.IOException
outputPath
- the output pathjava.io.IOException
- Signals that an I/O exception has occurred.public Tool getTool(TrianaInstance trianaInstance, org.shiwa.desktop.data.description.SHIWABundle shiwaBundle) throws java.io.IOException, TaskGraphException, ProxyInstantiationException, javax.xml.bind.JAXBException
trianaInstance
- the triana instanceshiwaBundle
- the shiwa bundlejava.io.IOException
- Signals that an I/O exception has occurred.TaskGraphException
- the task graph exceptionProxyInstantiationException
- the proxy instantiation exceptionjavax.xml.bind.JAXBException
- the jAXB exceptionpublic java.lang.String getServiceName()
getServiceName
in interface CLIaddon
public java.lang.String getLongOption()
getLongOption
in interface CLIaddon
public java.lang.String getShortOption()
getShortOption
in interface CLIaddon
public java.lang.String getDescription()
getDescription
in interface CLIaddon
public java.lang.String toString()
public java.lang.String getUsageString()
getUsageString
in interface CLIaddon
public void serializeOutputs(TaskGraph taskGraph) throws TaskException
taskGraph
- the task graphTaskException
- the task exceptionpublic java.util.ArrayList<java.io.File> getOutputFiles()
public void setRuntimeOutputFolder(java.io.File outputFolder)
outputFolder
- the new runtime output folderpublic static void timeOutput(java.lang.String s)
s
- the s