|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.plugin.concurrent.PluginWorkUnit
chemaxon.marvin.plugin.concurrent.ReusablePluginWorkUnit
public class ReusablePluginWorkUnit
Work unit performing plugin calculation.
The input is a {plugin object, input molecule} array,
the plugin is supposed to be coming from a
ReusableInputProducer
and returned by getResult().
The calculation result should be fetched from the plugin later in the application
and returned to the input producer by calling
ReusableInputProducer.reuse(java.lang.Object).
You can use a CompositeInputProducer composed of a
ReusableInputProducer and a
MolInputProducer to provide the input for this work unit.
MolInputProducer,
ReusableInputProducer,
CompositeInputProducer| Field Summary |
|---|
| Fields inherited from class chemaxon.marvin.plugin.concurrent.PluginWorkUnit |
|---|
plugin, target |
| Constructor Summary | |
|---|---|
ReusablePluginWorkUnit()
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
call()
Performs the calculation and returns the result returned by getResult(). |
java.lang.Object |
getResult()
Returns the plugin object itself. |
java.lang.Exception |
getWrapperException(java.lang.Exception e)
Returns a wrapper exception to be returned. |
void |
setInput(java.lang.Object obj)
Sets the plugin object and the input molecule. |
| Methods inherited from class chemaxon.marvin.plugin.concurrent.PluginWorkUnit |
|---|
getHeader, setPlugin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReusablePluginWorkUnit()
| Method Detail |
|---|
public void setInput(java.lang.Object obj)
throws java.util.concurrent.ExecutionException
setInput in interface WorkUnitsetInput in class PluginWorkUnitobj - a {plugin object, input molecule} object array
java.util.concurrent.ExecutionException
public java.lang.Object call()
throws java.lang.Exception
getResult().
call in interface java.util.concurrent.Callablecall in class PluginWorkUnitjava.lang.Exception
public java.lang.Object getResult()
throws java.lang.Exception
ReusableInputProducer.reuse(java.lang.Object).
getResult in class PluginWorkUnitjava.lang.Exceptionpublic java.lang.Exception getWrapperException(java.lang.Exception e)
getWrapperException in class PluginWorkUnite - the base exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||