Class AbstractFileTransfer

    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Constructor Detail

      • AbstractFileTransfer

        public AbstractFileTransfer()
    • Method Detail

      • finish

        protected java.lang.String finish​(TransferState state,
                                          long offset)
                                   throws ServerError
        Save the current state to disk and finish all timing and logging.
        Parameters:
        state - non-null
        offset - total length transferred.
        Returns:
        client-side digest string.
        Throws:
        ServerError - if the upload could not be completed and checksummed
      • cleanupUpload

        protected void cleanupUpload​(RawFileStorePrx rawFileStore,
                                     java.io.FileInputStream stream)
                              throws ServerError
        Utility method for closing resources.
        Parameters:
        rawFileStore - possibly null
        stream - possibly null
        Throws:
        ServerError - presently not at all as errors are simply logged, but possibly in the future
      • isWindows

        protected boolean isWindows()
        Uses os.name to determine whether or not this JVM is running under Windows. This is mostly used for determining which executables to run.
      • printLine

        protected void printLine()