|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModuleData
A ModuleData object provides runtime access to a module's environment.
Method Summary | |
---|---|
void |
close(boolean result)
Closes all streams. |
ModuleAttributes |
getAttributes()
Returns the module's configuration. |
Map<String,? extends Collection<? extends InputStream>> |
getInputPipes()
Returns the accessible input pipes. |
Map<String,? extends OutputStream> |
getOutputPipes()
Returns the accessible output pipes. |
int |
getUniqueId()
Creates an identifier which is unique within the current pipeline instance. |
boolean |
waitForPipeline(boolean result)
This method may be called by the module after all processing is completed if the final success status of the pipeline is relevant to the module. |
Methods inherited from interface net.sf.pipet.api.ResourceLoader |
---|
getResource, getResourceURL |
Method Detail |
---|
ModuleAttributes getAttributes()
Map<String,? extends Collection<? extends InputStream>> getInputPipes()
Map<String,? extends OutputStream> getOutputPipes()
int getUniqueId()
void close(boolean result)
boolean waitForPipeline(boolean result)
By calling this method, a module reports that its processing is completed. The method does not return until all processing in the pipeline is either completed or aborted, and finally returns the success status of the pipeline.
result
- the exit status of the calling module.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |