Class UnTARWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<T>
-
- com.levigo.jadice.server.core.StreamWorker<T>
-
- com.levigo.jadice.server.archive.worker.AbstractUnArchiveWorker<UnTARNode>
-
- com.levigo.jadice.server.archive.worker.UnTARWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<UnTARNode>
,Runnable
public class UnTARWorker extends AbstractUnArchiveWorker<UnTARNode>
Worker for theUnTARNode
.
-
-
Constructor Summary
Constructors Constructor Description UnTARWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isAcceptedByFilters(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
This method returnstrue
when a given tar entry shall be extracted otherwisefalse
.protected void
work(Stream stream)
Implement this method in order to work on a single stream.-
Methods inherited from class com.levigo.jadice.server.archive.worker.AbstractUnArchiveWorker
getFilters, isAcceptedByFilters, setFilters
-
Methods inherited from class com.levigo.jadice.server.core.StreamWorker
accept, reject, work
-
Methods inherited from class com.levigo.jadice.server.core.NodeWorker
abort, abortNow, addInputBundle, addOutputBundle, doAbort, doAbortNow, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getState, getStreamTransportFactory, getTransportSender, initialize, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, toString, warn, warn, warn
-
-
-
-
Method Detail
-
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 classStreamWorker<UnTARNode>
- Parameters:
stream
- theStream
to work on- Throws:
Throwable
- in case of processing failure
-
isAcceptedByFilters
protected boolean isAcceptedByFilters(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
This method returnstrue
when a given tar entry shall be extracted otherwisefalse
. ArchiveEntryFilters decide if a file shalle be excluded from the extraction process or not. If one applied Filter doesn't accept a tar archive entry it will not be extracted from the archive.- Parameters:
entry
- The archive entry of the tar archive.- Returns:
- if the file is accepted and therefore extracted from the archive.
-
-