abstract class ArchiveTask extends TaskBase
Any task extending this task must provide TBSRConstants.OUTPUT_FILE
as a parameter.
serverConfig
Constructor and Description |
---|
ArchiveTask() |
Modifier and Type | Method and Description |
---|---|
Status |
execute(String outputRoot,
Map<String,String> parameters)
Executes the core logic of the task.
|
(package private) abstract Collection<String> |
getMaskableFileTypes()
Returns a list of file types (extensions) that should be checked for credential masking, during archiving;
task-specific implementation should be provided by the actual task
|
(package private) abstract String |
loadSourceFiles(Collection<File> files)
Returns a Collection of source files (as a directory hierarchy) to be archived; task-specific implementation
should be provided by the actual task
|
getDescription, getId, getName, getParameterDetails, isIntensive, isMaskable, setDescription, setId, setIntensive, setMaskable, setName, setParameterDetails, setServerConfig, toView
public Status execute(String outputRoot, Map<String,String> parameters) throws Exception
TaskBase
File.separator
-terminated path
defined by the outputRoot
parameter.
Any exceptions should be thrown to the base method, for maintaining proper exception notification.abstract String loadSourceFiles(Collection<File> files) throws Exception
files
- Collection of source file referencesException
- in case of a failure to load the source fileabstract Collection<String> getMaskableFileTypes()
Copyright © 2016–2019 AdroitLogic. All rights reserved.