public abstract class AbstractMSWorker<N extends Node> extends StreamWorker<N>
Modifier and Type | Field and Description |
---|---|
protected com.levigo.util.log.Logger |
LOGGER |
Constructor and Description |
---|
AbstractMSWorker() |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Indicate that any current work should be aborted.
|
void |
abortNow()
Indicate that any current work should be aborted ASAP.
|
protected abstract StreamDescriptor |
createDescriptor(File result,
StreamDescriptor parent) |
protected abstract Map<String,String> |
getConversionProperties() |
protected abstract Class<? extends CommandReceiver> |
getConverterClass() |
MSOfficeConverterPool |
getConverterPool() |
protected abstract String |
getFilename() |
protected abstract String |
getTargetMimeType() |
void |
initialize()
This method may be overridden, in order do perform initialization which is necessary before the
actual work is started.
|
void |
setConverterPool(MSOfficeConverterPool converterPool)
Set the
MSOfficeConverterPool . |
protected boolean |
shallForwardStream(StreamDescriptor parentDescriptor,
File file) |
protected void |
work(Stream stream)
Implement this method in order to work on a single stream.
|
accept, reject, work
addInputBundle, addOuputBundle, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getStreamTransportFactory, getTransportSender, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, warn, warn, warn
public void initialize() throws JobException
NodeWorker
initialize
in class NodeWorker<N extends Node>
JobException
protected void work(Stream stream) throws Throwable
StreamWorker
work
in class StreamWorker<N extends Node>
Throwable
public void abort()
NodeWorker
abort
in class NodeWorker<N extends Node>
public void abortNow()
NodeWorker
abortNow
in class NodeWorker<N extends Node>
protected abstract Class<? extends CommandReceiver> getConverterClass()
protected abstract String getTargetMimeType()
protected abstract StreamDescriptor createDescriptor(File result, StreamDescriptor parent)
protected abstract String getFilename()
protected boolean shallForwardStream(StreamDescriptor parentDescriptor, File file)
public MSOfficeConverterPool getConverterPool()
public void setConverterPool(MSOfficeConverterPool converterPool)
MSOfficeConverterPool
. Usually done in Spring XML configuration.converterPool
- Copyright © 2016 levigo holding gmbh. All rights reserved.