org.topbraid.sparqlmotion.modules
Interface IExecutableModule

All Superinterfaces:
IModule
All Known Implementing Classes:
AbstractWriteToSesameRepositoryModule, LoadRDFFromSpreadsheetModule, WriteToSesameNativeRepositoryModule, WriteToSesameRemoteRepositoryModule

public interface IExecutableModule
extends IModule

An IModule that can be executed, i.e. "does something" when triggered.

Author:
Holger Knublauch

Method Summary
 boolean execute(org.eclipse.core.runtime.IProgressMonitor monitor)
          Executes this module.
 
Methods inherited from interface org.topbraid.sparqlmotion.modules.IModule
getConfig, getContext, getInputModules, init, setContext, setInputModules, validate
 

Method Detail

execute

boolean execute(org.eclipse.core.runtime.IProgressMonitor monitor)
                throws java.lang.Throwable
Executes this module. Execution the module may in fact consist of multiple steps, e.g. the module may ask the (TBL) client to enter a value. In this case the execution engine must interrupt and wait for a client response. To support this, this module should maintain a state object and implementations may add extra functions for the other steps.

Parameters:
monitor - the progress monitor
Returns:
true if the execution was not fully completed yet
Throws:
java.lang.Throwable - typically InterruptedException or an error message