public abstract class FileBasedAction extends CrawlerAction
Modifier and Type | Field and Description |
---|---|
protected boolean |
failMissingFile |
protected String |
file |
protected String |
fileKey |
protected FileSettings |
fileSettings |
LOG, phases
Constructor and Description |
---|
FileBasedAction() |
Modifier and Type | Method and Description |
---|---|
File |
getSelectedFile(File product,
Metadata metadata) |
boolean |
performAction(File product,
Metadata metadata) |
abstract boolean |
performFileAction(File actionFile,
Metadata metadata) |
void |
setFailMissingFile(boolean failMissingFile) |
void |
setFile(String file) |
void |
setFileExtension(String fileExtension) |
void |
setFileKey(String fileKey) |
void |
setFilePrefix(String filePrefix) |
void |
setFileSuffix(String fileSuffix) |
void |
setKeepExistingExtension(boolean keepExistingExtension) |
equals, getDescription, getId, getPhases, hashCode, setDescription, setId, setPhases, validate
protected String file
protected String fileKey
protected FileSettings fileSettings
protected boolean failMissingFile
public void setFilePrefix(String filePrefix)
public void setFileSuffix(String fileSuffix)
public void setFileExtension(String fileExtension)
public void setKeepExistingExtension(boolean keepExistingExtension)
public void setFile(String file)
public void setFileKey(String fileKey)
public void setFailMissingFile(boolean failMissingFile)
public boolean performAction(File product, Metadata metadata) throws CrawlerActionException
performAction
in class CrawlerAction
CrawlerActionException
Copyright © 1999–2017 Apache OODT. All rights reserved.