Constructor and Description |
---|
RetrievalWorker(ContentItem contentItem,
RetrievalSource source,
File contentDir,
boolean overwrite,
OutputWriter outWriter,
boolean createSpaceDir,
boolean applyTimestamps)
Creates a Retrieval Worker to handle retrieving a file
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyTimestamps(ContentStream content,
File localFile) |
protected boolean |
checksumsMatch(File localFile) |
protected boolean |
checksumsMatch(File localFile,
String remoteChecksum) |
protected void |
deleteFile(File localFile) |
protected void |
fail(String errMsg) |
protected String |
getChecksum(File localFile) |
protected Map<String,String> |
getContentProperties() |
File |
getLocalFile() |
protected void |
noChangeNeeded(String localFilePath) |
protected File |
renameFile(File localFile) |
Map<String,String> |
retrieveFile() |
protected Map<String,String> |
retrieveToFile(File localFile) |
void |
run() |
protected void |
succeed(String localFilePath) |
public RetrievalWorker(ContentItem contentItem, RetrievalSource source, File contentDir, boolean overwrite, OutputWriter outWriter, boolean createSpaceDir, boolean applyTimestamps)
public File getLocalFile()
protected boolean checksumsMatch(File localFile) throws IOException
IOException
protected boolean checksumsMatch(File localFile, String remoteChecksum) throws IOException
IOException
protected String getChecksum(File localFile) throws IOException
IOException
protected File renameFile(File localFile) throws IOException
IOException
protected void deleteFile(File localFile) throws IOException
IOException
protected Map<String,String> retrieveToFile(File localFile) throws IOException
IOException
protected void applyTimestamps(ContentStream content, File localFile)
protected void noChangeNeeded(String localFilePath)
protected void succeed(String localFilePath)
protected void fail(String errMsg)
Copyright © 2009–2014 DuraSpace. All rights reserved.