Class AbstractMSWorker<N extends Node>

    • Field Detail

      • logger

        protected final org.jadice.util.log.Logger logger
    • Constructor Detail

      • AbstractMSWorker

        public AbstractMSWorker()
    • Method Detail

      • initialize

        public void initialize()
                        throws JobException
        Description copied from class: NodeWorker
        This method may be overridden, in order do perform initialization which is necessary before the actual work is started.
        Caveat: this method may be called synchronously by the server master thread. Therefore the work done within this call should be kept to an absolute minimum so as not to stall the job acceptor.
        Overrides:
        initialize in class NodeWorker<N extends Node>
        Throws:
        JobException - in case of initialization failure
      • work

        protected void work​(Stream stream)
                     throws Throwable
        Description copied from class: StreamWorker
        Implement this method in order to work on a single stream.
        Specified by:
        work in class StreamWorker<N extends Node>
        Parameters:
        stream - the Stream to work on
        Throws:
        Throwable - in case of processing failure
      • doAbort

        protected void doAbort()
        Description copied from class: NodeWorker
        NodeWorker implementations can provide here own logic that shall be performed when an abort is triggered.
        Overrides:
        doAbort in class NodeWorker<N extends Node>
      • doAbortNow

        protected void doAbortNow()
        Description copied from class: NodeWorker
        NodeWorker implementations can provide here own logic that shall be performed when an immediate abort is triggered.

        jadice server 5.5.0.0

        Overrides:
        doAbortNow in class NodeWorker<N extends Node>
      • getTargetMimeType

        protected abstract String getTargetMimeType()
      • getConversionProperties

        protected abstract Map<String,​String> getConversionProperties()
      • getFilename

        protected abstract String getFilename()
      • shallForwardStream

        protected boolean shallForwardStream​(StreamDescriptor parentDescriptor,
                                             File file)