public class ZipArchiverTask<C extends ApplicationContext> extends AbstractAsyncTask<C>
ZipArchiver
asynchronouslychildTaskRef, isTestMode, monitorController, resultRef, stateFlag
Constructor and Description |
---|
ZipArchiverTask(C ctx) |
ZipArchiverTask(C ctx,
LogChannel logCh) |
ZipArchiverTask(C ctx,
LogChannel logCh,
java.lang.String name) |
ZipArchiverTask(C ctx,
LogChannel logCh,
java.lang.String taskName,
ZipArchiver archiver) |
ZipArchiverTask(C ctx,
LogChannel logCh,
ZipArchiver archiver) |
ZipArchiverTask(C ctx,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
executeAsync()
Must be overridden to perform the async part.
|
ZipArchiver |
getArchiver() |
java.io.File |
getSourceRootDir() |
void |
setAchiver(ZipArchiver archiver)
Sets the archiver to be run.
|
void |
setArchiveFile(java.io.File zipOutFile) |
void |
setRemoveSourceFiles(boolean isRemove) |
void |
setSourceRootDir(java.io.File rootDir) |
awaitFinished, awaitFinished, awaitStarted, cancel, createTaskId, deregisterTask, doOnFinish, doOnStart, doOnSuccess, executeChildTask, executeChildTask, getCurrentFuture, getMaxChildTasks, getPriority, getProcessingDuration, getStartTime, getStopWatch, handleFinish, handleStart, handleSuccess, isRegisterForCancel, isRunning, notifyProceeded, registerTask, releaseStart, run, setCurrentFuture, setMaxChildTasks, setPriority, setRegisterForCancel, setReleaseTimeout, submit, submit, submitInternal, toString, wasSucceeded
addMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, execute, executeSubTask, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, hasError, hasMonitor, isCancellable, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelled
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkCancelled, checkForErrorAndRethrow, executeSubTask, getName, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, isCancellable, setCancellable, setName, setResult, setRunStateFlag, sleepChecked
getApplicationContext
execute
addMonitor, clearMonitors, getMonitorCount, getMonitors, hasMonitor, removeMonitor
getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
wasCancelled
getTaskId
toDumpString, toDumpString, toString
public ZipArchiverTask(C ctx)
public ZipArchiverTask(C ctx, java.lang.String name)
public ZipArchiverTask(C ctx, LogChannel logCh)
public ZipArchiverTask(C ctx, LogChannel logCh, java.lang.String name)
public ZipArchiverTask(C ctx, LogChannel logCh, ZipArchiver archiver)
public ZipArchiverTask(C ctx, LogChannel logCh, java.lang.String taskName, ZipArchiver archiver)
public void setAchiver(ZipArchiver archiver)
public ZipArchiver getArchiver()
public void executeAsync() throws java.lang.Exception
AbstractAsyncTask
AbstractAsyncTask.notifyProceeded(Object, int, int, String)
in order to notify
about task progress. Note: the running task should periodically call
AbstractAsyncExecutable.checkCancelled()
in order to detect cancellation.executeAsync
in interface AsyncExecutable<C extends ApplicationContext>
executeAsync
in class AbstractAsyncTask<C extends ApplicationContext>
java.lang.Exception
for synchronous execution
public void setArchiveFile(java.io.File zipOutFile)
public void setRemoveSourceFiles(boolean isRemove)
public void setSourceRootDir(java.io.File rootDir)
public java.io.File getSourceRootDir()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.