Class RetrievalTool

java.lang.Object
org.duracloud.retrieval.RetrievalTool

public class RetrievalTool extends Object
Starting point for the Retrieval Tool. The purpose of this tool is to retrieve content files or content listings from DuraCloud. When the Retrieval Tool is started and the '-l' or '--list-only' option is not specified, it will connect to DuraCloud and proceed to copy files from the provided list of spaces to the local file system under the content directory. Any files which already exist locally will be compared (via checksum) with the file in DuraCloud. If the files are different the local file will either be renamed or overwritten, depending on whether the overwrite flag is set. If the '-l' or '--list-only' option is specified the the Retrieval Tool will create a text file, in the content directory, for each space provided and list each content ID in the space, one content ID per line. Once all files have been transferred to the local system the Retrieval Tool will exit. This tool (currently) provides no ongoing synchronization between DuraCloud and the local system.
  • Constructor Details

    • RetrievalTool

      public RetrievalTool()
  • Method Details

    • setRetrievalConfig

      protected void setRetrievalConfig(RetrievalToolConfig retConfig)
      Sets the configuration of the retrieval tool.
      Parameters:
      retConfig - to use for running the Retrieval Tool
    • runRetrievalTool

      public void runRetrievalTool()