Class DefaultPluginWorkUnit
- java.lang.Object
-
- chemaxon.marvin.plugin.concurrent.PluginWorkUnit
-
- chemaxon.marvin.plugin.concurrent.DefaultPluginWorkUnit
-
- All Implemented Interfaces:
chemaxon.util.concurrent.WorkUnit
,Callable
@PublicAPI public class DefaultPluginWorkUnit extends PluginWorkUnit
Work unit performing plugin calculation and returning the cached results.- Since:
- Marvin 5.2
-
-
Field Summary
-
Fields inherited from class chemaxon.marvin.plugin.concurrent.PluginWorkUnit
plugin, target
-
-
Constructor Summary
Constructors Constructor Description DefaultPluginWorkUnit(CalculatorPluginOutput<?> output, boolean stringResult)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getHeader()
Returns the table header.Object
getResult()
Returns the cached results.-
Methods inherited from class chemaxon.marvin.plugin.concurrent.PluginWorkUnit
call, getWrapperException, setInput, setPlugin
-
-
-
-
Constructor Detail
-
DefaultPluginWorkUnit
public DefaultPluginWorkUnit(CalculatorPluginOutput<?> output, boolean stringResult)
Constructor.
-
-
Method Detail
-
getHeader
protected String getHeader()
Returns the table header.- Overrides:
getHeader
in classPluginWorkUnit
- Returns:
- the table header
-
getResult
public Object getResult() throws Exception
Returns the cached results.- Specified by:
getResult
in classPluginWorkUnit
- Returns:
- the cached results
- Throws:
Exception
-
-