Class ExportUploadService


  • @Service
    public class ExportUploadService
    extends java.lang.Object
    Class which handles uploading a NcbiExportSubmission to NCBI
    • Field Detail

      • NCBI_ACCESSION_METADATA_LABEL

        public static final java.lang.String NCBI_ACCESSION_METADATA_LABEL
        See Also:
        Constant Field Values
    • Method Detail

      • setConnectionDetails

        public void setConnectionDetails​(java.lang.String ftpHost,
                                         int ftpPort,
                                         java.lang.String ftpUser,
                                         java.lang.String ftpPassword,
                                         java.lang.String baseDirectory)
        Manually configure connection details for this service
        Parameters:
        ftpHost - The hostname to connect to
        ftpPort - the ftp port to connect to
        ftpUser - the username to authenticate with
        ftpPassword - the password to authenticate with
        baseDirectory - the base directory to upload new runs into
      • launchUpload

        public void launchUpload()
        Check for new NcbiExportSubmissions to be uploaded and begin their upload
      • updateRunningUploads

        public void updateRunningUploads()
        Check local database for submissions which may have updates on the NCBI server and update them as necessary.