Class CreatedState

    • Method Detail

      • start

        protected void start()
                      throws unlimited.core.util.common.exception.FCException,
                             java.io.IOException
        Overrides:
        start in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • preProcess

        protected void preProcess​(TransferJob job)
                           throws unlimited.core.util.common.exception.FCException,
                                  java.io.IOException
        Description copied from class: MultiClientState
        Preprocess the job with all of the preprocess that are currently set
        Overrides:
        preProcess in class MultiClientState
        Parameters:
        job - Job to preprocess
        Throws:
        unlimited.core.util.common.exception.FCException - if a FileCatalyst protocol error occurs.
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
      • pushJobNoProcessing

        protected MultiClientTransferHook pushJobNoProcessing​(TransferJob job)
                                                       throws unlimited.core.util.common.exception.FCException,
                                                              java.io.IOException
        Description copied from class: MultiClientState
        Pushes a TransferJob into the Multi-Client for transfer. For this method, the job will not be processed before it is attempted
        Overrides:
        pushJobNoProcessing in class MultiClientState
        Parameters:
        job - Job to attempt
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • jobPushed

        protected void jobPushed​(TransferJob job)
        Description copied from class: MultiClientState
        Pushes a TransferJob into the Multi-Client for transfer. It will be attempted when it is pulled from the Multi-Client's TransferJobQueue
        Overrides:
        jobPushed in class MultiClientState
        Parameters:
        job - Job to attempt
      • cd

        protected void cd​(java.lang.String path)
                   throws unlimited.core.util.common.exception.FCException,
                          java.io.IOException
        Description copied from class: MultiClientState
        Navigates the manager into the supplied path.
        Overrides:
        cd in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • remoteSynchFile

        protected void remoteSynchFile​(FileListDataItem aFile)
                                throws unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        This is useful for progressive downloads when the updated value of the FileListData is required.
        Overrides:
        remoteSynchFile in class MultiClientState
        Parameters:
        aFile - a FileListDataItem with a valid name that the size and modified time will be updated.
        Throws:
        unlimited.core.util.common.exception.FCException
      • cdup

        protected void cdup()
                     throws unlimited.core.util.common.exception.FCException,
                            java.io.IOException
        Description copied from class: MultiClientState
        Move up one directory on the remote directory structure.
        Overrides:
        cdup in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • doJob

        protected void doJob​(TransferRunner runner)
                      throws unlimited.core.util.common.exception.FCException,
                             java.io.IOException
        Overrides:
        doJob in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • initialize

        protected void initialize​(boolean generateUserLogs)
        Description copied from class: MultiClientState
        Initialize Multi-Client object. This will initialize the logs for this session. The log location can be configured with the setLogLocation() method, but must be done before the initialize() method is called.
        Overrides:
        initialize in class MultiClientState
      • connect

        protected void connect()
                        throws unlimited.core.util.common.exception.FCException,
                               java.io.IOException
        Description copied from class: MultiClientState
        Connect to the FileCatalyst server. Reporting disabled.
        Overrides:
        connect in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • synchClient

        protected boolean synchClient​(FileTransferMechanism client)
                               throws unlimited.core.util.common.exception.FCException,
                                      java.io.IOException
        Overrides:
        synchClient in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • willTransferWork

        protected boolean willTransferWork()
        Description copied from class: MultiClientState
        Returns whether or not transfers will work under the current settings
        Overrides:
        willTransferWork in class MultiClientState
        Returns:
      • autoDetectConectionMode

        protected void autoDetectConectionMode()
                                        throws unlimited.core.util.common.exception.FCException,
                                               java.io.IOException
        Overrides:
        autoDetectConectionMode in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • autoDetectConectionModeDownload

        protected void autoDetectConectionModeDownload()
                                                throws unlimited.core.util.common.exception.FCException,
                                                       java.io.IOException
        Description copied from class: MultiClientState
        This method will attempt to detect the optimal connection method based on the provided server information, HTTP servlet location, and ports. It will also detect which mode to use for downloading files.
        Overrides:
        autoDetectConectionModeDownload in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • autoDetectConectionModeUpload

        protected void autoDetectConectionModeUpload()
                                              throws unlimited.core.util.common.exception.FCException,
                                                     java.io.IOException
        Description copied from class: MultiClientState
        This method will attempt to detect the optimal connection method based on the provided server information, HTTP servlet location, and ports. It will also detect which mode to use for uploading files.
        Overrides:
        autoDetectConectionModeUpload in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • autoDetectConectionModeUploadAndDownload

        protected void autoDetectConectionModeUploadAndDownload()
                                                         throws unlimited.core.util.common.exception.FCException,
                                                                java.io.IOException
        Description copied from class: MultiClientState
        This method will attempt to detect the optimal connection method based on the provided server information, HTTP servlet location, and ports. It will also detect which mode to use for uploading AND downloading files. If UDP fails for EITHER upload OR download, the mode will be reverted to FTP or HTTP
        Overrides:
        autoDetectConectionModeUploadAndDownload in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • autoDetectConectionModeDownload

        protected void autoDetectConectionModeDownload​(boolean testUDP,
                                                       boolean portFallback)
                                                throws unlimited.core.util.common.exception.FCException,
                                                       java.io.IOException
        Description copied from class: MultiClientState
        This method will attempt to detect the optimal connection method based on the provided server information, HTTP servlet location, and ports. It will also detect which mode to use for downloading files.
        Overrides:
        autoDetectConectionModeDownload in class MultiClientState
        Parameters:
        testUDP - true/false whether or not UDP test should be performed
        portFallback - true/false whether TCP data connection test should fallback to PORT if PASV fails.
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • autoDetectConectionModeUpload

        protected void autoDetectConectionModeUpload​(boolean testUDP,
                                                     boolean portFallback)
                                              throws unlimited.core.util.common.exception.FCException,
                                                     java.io.IOException
        Description copied from class: MultiClientState
        This method will attempt to detect the optimal connection method based on the provided server information, HTTP servlet location, and ports. It will also detect which mode to use for uploading files.
        Overrides:
        autoDetectConectionModeUpload in class MultiClientState
        Parameters:
        testUDP - true/false whether or not UDP test should be performed
        portFallback - true/false whether TCP data connection test should fallback to PORT if PASV fails.
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • autoDetectConectionModeUploadAndDownload

        protected void autoDetectConectionModeUploadAndDownload​(boolean portFallback)
                                                         throws unlimited.core.util.common.exception.FCException,
                                                                java.io.IOException
        Description copied from class: MultiClientState
        This method will attempt to detect the optimal connection method based on the provided server information, HTTP servlet location, and ports. It will also detect which mode to use for uploading AND downloading files. If UDP fails for EITHER upload OR download, the mode will be reverted to FTP or HTTP
        Overrides:
        autoDetectConectionModeUploadAndDownload in class MultiClientState
        Parameters:
        portFallback - true/false whether TCP data connection test should fallback to PORT if PASV fails.
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • login

        protected void login​(java.util.function.Supplier<ClientCredentials> creds)
                      throws unlimited.core.util.common.exception.FCException,
                             java.io.IOException
        Description copied from class: MultiClientState
        Login to the server with the specifed credentials.
        Overrides:
        login in class MultiClientState
        Parameters:
        creds - The Credentials with which to authenticate
        Throws:
        unlimited.core.util.common.exception.FCException - If authentication fails
        java.io.IOException - If a timeout, or other I/O error occurs
      • disconnect

        protected void disconnect()
                           throws unlimited.core.util.common.exception.FCException,
                                  java.io.IOException
        Description copied from class: MultiClientState
        Disconnect from the server.
        Overrides:
        disconnect in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • finish

        protected void finish()
        Description copied from class: MultiClientState
        Cleans up memory allocated by the native libraries component of FileCatalyst. This should be called when all transfers are completed and the FCClient object is no longer needed.
        Overrides:
        finish in class MultiClientState
      • exists

        protected boolean exists​(java.lang.String remoteFile)
                          throws unlimited.core.util.common.exception.FCException,
                                 java.io.IOException
        Description copied from class: MultiClientState
        Test if the remote file, denoted by the given remote path, exists on the server and returns true if it exists, false otherwise.
        Overrides:
        exists in class MultiClientState
        Parameters:
        remoteFile - String The path to the remote file
        Returns:
        boolean True if the file exists, false otherwise
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • exists

        protected unlimited.core.util.common.AutoClose<unlimited.core.util.common.stream.PairStream<java.lang.String,​java.lang.Boolean>> exists​(java.util.stream.Stream<java.lang.String> remoteFile)
                                                                                                                                               throws unlimited.core.util.common.exception.FCException,
                                                                                                                                                      java.io.IOException
        Description copied from class: MultiClientState
        Test if the remote file, denoted by the given remote path, exists on the server and returns true if it exists, false otherwise.
        Overrides:
        exists in class MultiClientState
        Parameters:
        remoteFile - String The path to the remote file
        Returns:
        boolean True if the file exists, false otherwise
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • size

        protected long size​(java.lang.String remoteFile,
                            boolean bypassCache)
                     throws unlimited.core.util.common.exception.FCException,
                            java.io.IOException
        Description copied from class: MultiClientState
        Get the size of the named file from the remote server.
        Overrides:
        size in class MultiClientState
        Returns:
        the size of the file
        Throws:
        unlimited.core.util.common.exception.FCException - if a FileCatalyst protocol error occurs.
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
      • download

        protected TransferHook download​(java.lang.String remoteFile)
                                 throws java.io.IOException,
                                        unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Download a the specified file to the current local working directory.
        Overrides:
        download in class MultiClientState
        Parameters:
        remoteFile - The remote file to be downloaded. Can be a relative or absolute path to the file.
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • download

        protected TransferHook download​(java.lang.String remoteFile,
                                        java.lang.String localPath)
                                 throws unlimited.core.util.common.exception.FCException,
                                        java.io.IOException
        Description copied from class: MultiClientState
        Download the specified file to the specified local path.
        Overrides:
        download in class MultiClientState
        Parameters:
        remoteFile - The remote file to be downloaded. Can be a relative or absolute path to the file.
        localPath - The local path to which the file will be stored
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • download

        protected TransferHook download​(java.util.List<java.lang.String> files)
                                 throws java.io.IOException,
                                        unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Downloads the files as specified by the paths (in String format) contained in the specified vector to the current working directory.
        Overrides:
        download in class MultiClientState
        Parameters:
        files - A Vector containing paths (as String) of files to be downloaded
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • download

        protected TransferHook download​(FileListData files)
                                 throws java.io.IOException,
                                        unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Downloads the files specified in the FileListData object to the current local working directory.
        Overrides:
        download in class MultiClientState
        Parameters:
        files - List of files to be downloaded
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        java.io.IOException - If a timeout, or other IO error occurs
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
      • download

        protected TransferHook download​(FileListData files,
                                        java.lang.String localPath,
                                        java.lang.String transferUniqueID,
                                        boolean needsRecurse)
                                 throws java.io.IOException,
                                        unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Downloads the files specified in the FileListData object to the specified path.
        Overrides:
        download in class MultiClientState
        Parameters:
        files - FileListData
        localPath - String
        transferUniqueID - Assigns a unique transaction ID for the duration of this transfer. Overrides global setUniqueID() variable.
        needsRecurse - flag to recurse in any directories passed into the client object for transfer
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        java.io.IOException - If a timeout, or other IO error occurs
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
      • download

        protected TransferHook download​(java.util.List<java.lang.String> files,
                                        java.lang.String localPath)
                                 throws java.io.IOException,
                                        unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Download the specified file to the specified local file.
        Overrides:
        download in class MultiClientState
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • download

        protected TransferHook download​(java.util.List<java.lang.String> files,
                                        java.lang.String localPath,
                                        java.lang.String transferUniqueID,
                                        boolean needsRecurse)
                                 throws java.io.IOException,
                                        unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Downloads the files as specified by the paths (in String format) contained in the specified vector to the current working directory.
        Overrides:
        download in class MultiClientState
        Parameters:
        files - A Vector containing paths (as String) of files to be downloaded
        localPath - The local path to which the files will be stored
        transferUniqueID - Assigns a unique transaction ID for the duration of this transfer. Overrides global setUniqueID() variable.
        needsRecurse - flag to recurse in any directories passed into the client object for transfer
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • uploadStream

        protected void uploadStream​(java.util.stream.Stream<java.nio.file.Path> stream)
                             throws unlimited.core.util.common.exception.FCException,
                                    java.io.IOException
        Overrides:
        uploadStream in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • downloadStream

        protected void downloadStream​(java.util.stream.Stream<FileListDataItem> stream)
                               throws unlimited.core.util.common.exception.FCException,
                                      java.io.IOException
        Overrides:
        downloadStream in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • transferJobStream

        protected <FileType> void transferJobStream​(java.util.stream.Stream<TransferJob.FileTypeJob<FileType>> stream)
                                             throws unlimited.core.util.common.exception.FCException,
                                                    java.io.IOException
        Overrides:
        transferJobStream in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • uploadList

        protected TransferHook uploadList​(java.util.List files,
                                          java.lang.String remotePath,
                                          java.lang.String transferUniqueID,
                                          boolean needsRecurse)
                                   throws java.io.IOException,
                                          unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Uploads a list of files to the connected Server.
        Overrides:
        uploadList in class MultiClientState
        Parameters:
        files - List of Paths to be uploaded
        remotePath - Remote path of where the files should land on the Server
        transferUniqueID - Unique ID that you wish to have for the transfer
        needsRecurse - Whether or not the code should recurse into the file to transfer it (defaults to true)
        Returns:
        Throws:
        unlimited.core.util.common.exception.FCException - if a FileCatalyst protocol error occurs.
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
      • upload

        protected TransferHook upload​(java.lang.String localFile)
                               throws java.io.IOException,
                                      unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Upload the specified file to the current remote working directory.
        Overrides:
        upload in class MultiClientState
        Parameters:
        localFile - The local file to be uploaded, can be a directory as well
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • upload

        protected TransferHook upload​(java.nio.file.Path localFile)
                               throws java.io.IOException,
                                      unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Upload the specified file to the current remote working directory.
        Overrides:
        upload in class MultiClientState
        Parameters:
        localFile - The local file to be uploaded, can be a directory as well
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • upload

        protected TransferHook upload​(java.nio.file.Path localFile,
                                      java.lang.String remotePath)
                               throws unlimited.core.util.common.exception.FCException,
                                      java.io.IOException
        Description copied from class: MultiClientState
        Upload the specified file to the specified remote directory.
        Overrides:
        upload in class MultiClientState
        Parameters:
        localFile - The local file to be uploaded, can be a directory as well
        remotePath - The remote path where files should be uploaded
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • upload

        protected TransferHook upload​(java.nio.file.Path localFile,
                                      java.lang.String remotePath,
                                      java.lang.String transferUniqueID)
                               throws unlimited.core.util.common.exception.FCException,
                                      java.io.IOException
        Description copied from class: MultiClientState
        Upload the specified file to the specified remote directory and specifies a unique transaction id.
        Overrides:
        upload in class MultiClientState
        Parameters:
        localFile - The local file to be uploaded, can be a directory as well
        remotePath - The remote path where files should be uploaded
        transferUniqueID - Assigns a unique transaction ID for the duration of this transfer. Overrides global setUniqueID() variable.
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • uploadAs

        protected TransferHook uploadAs​(java.nio.file.Path localFile,
                                        java.lang.String remoteFilename)
                                 throws unlimited.core.util.common.exception.FCException,
                                        java.io.IOException
        Description copied from class: MultiClientState
        Upload the specified file to the specified remote filename. The remoteFilename filename parameter can be a plain filename, in which case it will be uploaded to the current remote directory. It can also be a relative or absolute path on the remote server. i.e. /path/to/stor/file.zip
        Overrides:
        uploadAs in class MultiClientState
        Parameters:
        localFile - The local file to be uploaded, can be a directory as well
        remoteFilename - The filename to which this file will be stored
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • uploadAs

        protected TransferHook uploadAs​(java.nio.file.Path localFile,
                                        java.lang.String remoteFilename,
                                        java.lang.String transferUniqueID)
                                 throws unlimited.core.util.common.exception.FCException,
                                        java.io.IOException
        Description copied from class: MultiClientState
        Upload the specified file to the specified remote filename. The remoteFilename filename parameter can be a plain filename, in which case it will be uploaded to the current remote directory. It can also be a relative or absolute path on the remote server. i.e. /path/to/stor/file.zip
        Overrides:
        uploadAs in class MultiClientState
        Parameters:
        localFile - The local file to be uploaded, can be a directory as well
        remoteFilename - The filename to which this file will be stored
        transferUniqueID - Assigns a unique transaction ID for the duration of this transfer. Overrides global setUniqueID() variable.
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • upload

        protected TransferHook upload​(java.util.List<java.nio.file.Path> files)
                               throws java.io.IOException,
                                      unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Uploads all File objects in the Vector provided to the current remote working directory.
        Overrides:
        upload in class MultiClientState
        Parameters:
        files - A Vector of File objects to be uploaded
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • upload

        protected TransferHook upload​(java.util.List<java.nio.file.Path> files,
                                      java.lang.String remotePath)
                               throws java.io.IOException,
                                      unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Uploads all File objects in the Vector provided to the specified remote directory.
        Overrides:
        upload in class MultiClientState
        Parameters:
        files - A Vector of File objects to be uploaded
        remotePath - The remote path where files should be uploaded
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • upload

        protected TransferHook upload​(java.util.List<java.nio.file.Path> files,
                                      java.lang.String remotePath,
                                      java.lang.String transferUniqueID)
                               throws java.io.IOException,
                                      unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Uploads all File objects in the Vector provided to the specified remote directory.
        Overrides:
        upload in class MultiClientState
        Parameters:
        files - A Vector of File objects to be uploaded
        remotePath - The remote path where files should be uploaded
        transferUniqueID - Assigns a unique transaction ID for the duration of this transfer. Overrides global setUniqueID() variable.
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • addCustomLogHandler

        protected void addCustomLogHandler​(java.util.logging.Handler handler)
        Description copied from class: MultiClientState
        Adds a custom log handler to which API logs will be published. This should be called prior to calling initialize() to have an affect.
        Overrides:
        addCustomLogHandler in class MultiClientState
        Parameters:
        handler - The log handler to add.
      • quote

        protected java.lang.String quote​(java.lang.String command)
                                  throws java.io.IOException,
                                         unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Issue arbitrary FileCatalyst commands to the FileCatalyst server. example: MD5 commands can be called from here
        Overrides:
        quote in class MultiClientState
        Parameters:
        command - command to be sent to server
        Returns:
        sends back the server response to the command.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • noop

        protected void noop()
                     throws java.io.IOException,
                            unlimited.core.util.common.exception.FCException
        Overrides:
        noop in class MultiClientState
        Throws:
        java.io.IOException
        unlimited.core.util.common.exception.FCException
      • pwd

        protected java.lang.String pwd()
                                throws unlimited.core.util.common.exception.FCException,
                                       java.io.IOException
        Overrides:
        pwd in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • fsEvents

        protected void fsEvents()
                         throws unlimited.core.util.common.exception.FCException,
                                java.io.IOException
        Description copied from class: MultiClientState
        Prints out a list of the current file system events that are set on the server. Uses a default timeout value of 1000.
        Overrides:
        fsEvents in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • delete

        protected void delete​(java.lang.String file)
                       throws unlimited.core.util.common.exception.FCException,
                              java.io.IOException
        Description copied from class: MultiClientState
        Deletes the specified file from the remote file system.
        Overrides:
        delete in class MultiClientState
        Parameters:
        file - The file to be deleted
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • deleteAll

        protected void deleteAll​(java.util.List files)
                          throws unlimited.core.util.common.exception.FCException,
                                 java.io.IOException
        Description copied from class: MultiClientState
        Delete all specified files in a single efficient command. Files and directories may be passed, and are deleted recursively.
        Overrides:
        deleteAll in class MultiClientState
        Parameters:
        files - List of files to delete
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • deleteAll

        protected void deleteAll​(FileListData files)
                          throws java.io.IOException,
                                 unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Delete all specified files in a single efficient command. Files and directories may be passed, and are deleted recursively.
        Overrides:
        deleteAll in class MultiClientState
        Parameters:
        files - List of files to delete
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • deleteAll

        protected void deleteAll​(FileListDataItem[] files)
                          throws java.io.IOException,
                                 unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Delete all specified files in a single efficient command. Files and directories may be passed, and are deleted recursively.
        Overrides:
        deleteAll in class MultiClientState
        Parameters:
        files - List of files to delete
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • mkdir

        protected void mkdir​(java.lang.String dir)
                      throws unlimited.core.util.common.exception.FCException,
                             java.io.IOException
        Description copied from class: MultiClientState
        Creates the specified directory on the remote file system.
        Overrides:
        mkdir in class MultiClientState
        Parameters:
        dir - The directory to be created
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs, i.e. permissions denied
        java.io.IOException - If a timeout, or other IO error occurs
      • rmdir

        protected void rmdir​(java.lang.String dir)
                      throws unlimited.core.util.common.exception.FCException,
                             java.io.IOException
        Description copied from class: MultiClientState
        Deletes the specified directory from the remote file system.
        Overrides:
        rmdir in class MultiClientState
        Parameters:
        dir - The directory to be deleted
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • rmdirRecursive

        protected void rmdirRecursive​(FileListDataItem fileListDataItem)
                               throws java.lang.Exception
        Description copied from class: MultiClientState
        Deletes a directory on the server in a recursive manner.
        Overrides:
        rmdirRecursive in class MultiClientState
        Parameters:
        fileListDataItem - Directory that should be deleted
        Throws:
        java.lang.Exception - IOException or FCException depending on the issue encountered
      • rename

        protected void rename​(java.lang.String oldName,
                              java.lang.String newName)
                       throws unlimited.core.util.common.exception.FCException,
                              java.io.IOException
        Description copied from class: MultiClientState
        Renames the specified file to the new name.
        Overrides:
        rename in class MultiClientState
        Parameters:
        oldName - File to be renamed
        newName - New name for the file
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • list

        protected FileListData list()
                             throws unlimited.core.util.common.exception.FCException,
                                    java.io.IOException
        Description copied from class: MultiClientState
        Returns meta data for files in the current remote directory.
        Overrides:
        list in class MultiClientState
        Returns:
        meta data for files in the current remote directory.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • list

        protected FileListData list​(java.lang.String wildcard,
                                    java.lang.String remoteDirectory)
                             throws unlimited.core.util.common.exception.FCException,
                                    java.io.IOException
        Description copied from class: MultiClientState
        Returns meta data for files in the remote directory.
        Overrides:
        list in class MultiClientState
        Parameters:
        wildcard - only return items that match this pattern
        Returns:
        meta data for files in the current remote directory.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • listWithInlineParse

        protected FileListData listWithInlineParse()
                                            throws unlimited.core.util.common.exception.FCException,
                                                   java.io.IOException
        Description copied from class: MultiClientState
        Returns meta data for files in the current remote directory.
        Overrides:
        listWithInlineParse in class MultiClientState
        Returns:
        meta data for files in the current remote directory.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • listWithInlineParse

        protected FileListData listWithInlineParse​(java.lang.String directory)
                                            throws unlimited.core.util.common.exception.FCException,
                                                   java.io.IOException
        Description copied from class: MultiClientState
        Returns meta data for files in the given remote directory.
        Overrides:
        listWithInlineParse in class MultiClientState
        Parameters:
        directory - to get data from
        Returns:
        meta data for files in the given remote directory.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • streamWithInlineParse

        protected java.util.stream.Stream<FileListDataItem> streamWithInlineParse​(java.lang.String directory)
                                                                           throws unlimited.core.util.common.exception.FCException,
                                                                                  java.io.IOException
        Description copied from class: MultiClientState
        Returns streaming meta data for files in the current remote directory.
        Overrides:
        streamWithInlineParse in class MultiClientState
        Returns:
        stream of FileListDataItems
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • streamWithInlineParse

        protected java.util.stream.Stream<FileListDataItem> streamWithInlineParse​(java.lang.String directory,
                                                                                  java.util.function.BooleanSupplier isCancelled)
                                                                           throws unlimited.core.util.common.exception.FCException,
                                                                                  java.io.IOException
        Overrides:
        streamWithInlineParse in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • listNoParse

        public FileListData listNoParse​(java.lang.String directory)
                                 throws unlimited.core.util.common.exception.FCException,
                                        java.io.IOException
        Overrides:
        listNoParse in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • list

        protected FileListData list​(java.lang.String wildcard)
                             throws unlimited.core.util.common.exception.FCException,
                                    java.io.IOException
        Description copied from class: MultiClientState
        Returns meta data for files in the current remote directory.
        Overrides:
        list in class MultiClientState
        Parameters:
        wildcard - only return items that match this pattern
        Returns:
        meta data for files in the current remote directory.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • listRecursiveFTPCompatible

        protected FileListData listRecursiveFTPCompatible​(java.lang.String directory)
                                                   throws unlimited.core.util.common.exception.FCException,
                                                          java.io.IOException
        Description copied from class: MultiClientState
        This is a ftp compatible listWithInlineParse();
        Overrides:
        listRecursiveFTPCompatible in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • setSSLSocketProducer

        protected void setSSLSocketProducer​(unlimited.core.util.common.net.ssl.FCSSLSocketProducerImpl socketProducer)
        Overrides:
        setSSLSocketProducer in class MultiClientState
      • setLogPrefix

        public void setLogPrefix​(java.lang.String logPrefix)
        Description copied from class: MultiClientState
        Sets the prefix of the log files to whatever value is supplied
        Overrides:
        setLogPrefix in class MultiClientState
        Parameters:
        logPrefix - New prefix to apply
      • getLogger

        protected unlimited.core.util.common.logs.LogUtils getLogger()
        Overrides:
        getLogger in class MultiClientState
      • setLogger

        protected void setLogger​(unlimited.core.util.common.logs.LogUtils logger)
        Overrides:
        setLogger in class MultiClientState
      • setLoggerAttempt

        protected java.lang.Throwable setLoggerAttempt​(unlimited.core.util.common.logs.LogUtils logger)
      • setServletLocation

        protected void setServletLocation​(java.lang.String servletLocation,
                                          java.lang.String servletSessionID,
                                          java.lang.String welcomeMessage)
        Overrides:
        setServletLocation in class MultiClientState
      • testWriteSpeed

        protected int testWriteSpeed()
                              throws java.io.FileNotFoundException,
                                     java.io.IOException
        Description copied from class: MultiClientState
        Perform a write to current directory with recommended values for determining storage rate.
        Overrides:
        testWriteSpeed in class MultiClientState
        Returns:
        write speed in kilobits per second
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • testWriteSpeed

        protected int testWriteSpeed​(java.nio.file.Path file,
                                     int size,
                                     int timeout)
                              throws java.io.FileNotFoundException,
                                     java.io.IOException
        Description copied from class: MultiClientState
        Perform a write to specified file with specified size and timeout for determining storage rate.
        Overrides:
        testWriteSpeed in class MultiClientState
        Parameters:
        file - file to write
        size - size of file in bytes
        timeout - timeout of write in milliseconds
        Returns:
        write speed in kilobits per second
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • testMaximumUploadSpeed

        protected int testMaximumUploadSpeed()
                                      throws unlimited.core.util.common.exception.FCException,
                                             java.io.IOException
        Description copied from class: MultiClientState
        Performs a series of tests to determine the maximum upload speed to the connected server.
        Overrides:
        testMaximumUploadSpeed in class MultiClientState
        Returns:
        int the rate detected in Kbps
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • testMaximumDownloadSpeed

        protected int testMaximumDownloadSpeed()
                                        throws unlimited.core.util.common.exception.FCException,
                                               java.io.IOException
        Description copied from class: MultiClientState
        Performs a series of tests to determine the maximum download speed from the connected server.
        Overrides:
        testMaximumDownloadSpeed in class MultiClientState
        Returns:
        int the rate detected in Kbps
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • stopSpeedTesting

        protected void stopSpeedTesting()
        Description copied from class: MultiClientState
        Stops the current speed testing methods that this TransferMechanism may be executing
        Overrides:
        stopSpeedTesting in class MultiClientState
      • filesMatch

        protected boolean filesMatch​(java.nio.file.Path file,
                                     java.lang.String rFile,
                                     int md5RateLimit,
                                     unlimited.core.util.common.CancelHandler cancelHandler)
                              throws unlimited.core.util.common.exception.FCException,
                                     java.io.IOException,
                                     java.lang.Exception
        Description copied from class: MultiClientState
        Verifies whether a local file matches a remote file using MD5 checksum
        Overrides:
        filesMatch in class MultiClientState
        Parameters:
        file - Local file
        rFile - Remote file
        cancelHandler - Cancel Handler
        Returns:
        true if the local file matches the remote file, false if they don't match
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
        java.lang.Exception
      • getMD5Checksum

        protected java.lang.String getMD5Checksum​(java.lang.String rFile)
                                           throws unlimited.core.util.common.exception.FCException,
                                                  java.io.IOException
        Description copied from class: MultiClientState
        Returns the MD5 checksum for the given remote file
        Overrides:
        getMD5Checksum in class MultiClientState
        Returns:
        the MD5 checksum for the given remote file
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • getMD5

        protected java.lang.String getMD5​(java.lang.String remote)
                                   throws unlimited.core.util.common.exception.FCException,
                                          java.io.IOException
        Description copied from class: MultiClientState
        Returns the MD5 checksum for the specified remote file if it exists
        Overrides:
        getMD5 in class MultiClientState
        Parameters:
        remote - file to checksum
        Returns:
        String representation of the remote file's MD5 checksum
        Throws:
        unlimited.core.util.common.exception.FCException - if not connected
        java.io.IOException
      • serverVersion

        protected java.lang.String serverVersion()
                                          throws unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Returns the FileCatalyst server version.
        Overrides:
        serverVersion in class MultiClientState
        Returns:
        FileCatalyst Server version
        Throws:
        unlimited.core.util.common.exception.FCException - Exception thrown if not connected.
      • isFileCatalystServer

        protected boolean isFileCatalystServer()
                                        throws java.io.IOException,
                                               unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Returns true if connected to a FileCatalyst server. Returns false if connected to a standard FTP server.
        Overrides:
        isFileCatalystServer in class MultiClientState
        Returns:
        true if connected to a FileCatalyst server.
        Throws:
        java.io.IOException
        unlimited.core.util.common.exception.FCException
      • isUDPSupported

        protected boolean isUDPSupported()
                                  throws java.io.IOException,
                                         unlimited.core.util.common.exception.FCException
        Description copied from class: MultiClientState
        Returns true if connected to a FileCatalyst server that supports UDP.
        Overrides:
        isUDPSupported in class MultiClientState
        Returns:
        Returns false if you are not FileCatalyst or if UDP is not supported by license.
        Throws:
        java.io.IOException
        unlimited.core.util.common.exception.FCException
      • testUDPACKs

        protected void testUDPACKs()
                            throws unlimited.core.util.common.exception.FCException,
                                   java.io.IOException
        Description copied from class: MultiClientState
        Tests if UDP ACK mode is possible an configures internal variables. This method only needs to be called if the FCClient object was created using an existing authenticated Socket object.
        Overrides:
        testUDPACKs in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • setReport

        public void setReport​(unlimited.fc.reporting.ClientDataReport reporter)
        Description copied from class: MultiClientState
        Sets the report object.
        Overrides:
        setReport in class MultiClientState
      • remoteUpload

        protected TransferHook remoteUpload​(FCClient destServer,
                                            java.lang.String sourceFile,
                                            java.lang.String destFile)
                                     throws unlimited.core.util.common.exception.FCException,
                                            java.io.IOException,
                                            java.lang.Exception
        Description copied from class: MultiClientState
        This method will initiate an upload from the server to which this FCClient object (Server A) is connected to the server specified by the destServer parameter passed in (Server B). The sourceFile is the path to a file on Server A and the desFile is the path on Server B where the file will be uploaded. This method returns a TransferHook which may be monitored for status information, and which allows the transfer to be canceled. All transfer parameters, transfer mode, etc... are specified through the regular API methods, such as setBlocksize(), setMode(), etc...
        Overrides:
        remoteUpload in class MultiClientState
        Parameters:
        destServer - an FCClient object from which remote connection information will be taken. It doesn't have to be connected.
        sourceFile - the absolute or relative path to the source file
        destFile - the absolute or relative path to the destination file
        Returns:
        a TransferHook which may be monitored for status information
        Throws:
        unlimited.core.util.common.exception.FCException - if a FileCatalyst protocol error occurs.
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
        java.lang.Exception
      • remoteUpload

        protected TransferHook remoteUpload​(FCClient destServer,
                                            java.util.List<java.lang.String> sourceFiles,
                                            java.util.List<java.lang.String> destFiles)
                                     throws unlimited.core.util.common.exception.FCException,
                                            java.io.IOException,
                                            java.lang.Exception
        Description copied from class: MultiClientState
        This method will initiate an upload from the server to which this FCClient object (Server A) is connected to the server specified by the destServer parameter passed in (Server B). The sourceFile is the path to a file on Server A and the desFile is the path on Server B where the file will be uploaded. This method returns a TransferHook which may be monitored for status information, and which allows the transfer to be canceled. All transfer parameters, transfer mode, etc... are specified through the regular API methods, such as setBlocksize(), setMode(), etc...
        Overrides:
        remoteUpload in class MultiClientState
        Parameters:
        destServer - an FCClient object from which remote connection information will be taken. It doesn't have to be connected.
        sourceFiles - a list of absolute or relative paths to the source files to be transferred
        destFiles - a list of absolute or relative paths to the destination files. Size must match sourceFiles List.
        Returns:
        a TransferHook which may be monitored for status information
        Throws:
        unlimited.core.util.common.exception.FCException - if a FileCatalyst protocol error occurs.
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
        java.lang.Exception
      • downloadAs

        protected TransferHook downloadAs​(FileListDataItem remoteFile,
                                          java.nio.file.Path localFile,
                                          java.lang.String transferUniqueID)
                                   throws unlimited.core.util.common.exception.FCException,
                                          java.io.IOException
        Description copied from class: MultiClientState
        Download the specified file to the specified local file.
        Overrides:
        downloadAs in class MultiClientState
        Parameters:
        remoteFile - The remote file to be downloaded. Can be a relative or absolute path to the file.
        localFile - The local path to which the file will be stored. Can be a different path entirely
        transferUniqueID - Unique ID for the transfer
        Returns:
        A handler object that can be monitored for progress and status information.
        Throws:
        unlimited.core.util.common.exception.FCException - If an error in the FC protocol occurs
        java.io.IOException - If a timeout, or other IO error occurs
      • testApproximateUploadSpeed

        protected int testApproximateUploadSpeed()
                                          throws unlimited.core.util.common.exception.FCException,
                                                 java.io.IOException
        Description copied from class: MultiClientState
        Performs a quick test to determine the approximate upload speed to the connected server.
        Overrides:
        testApproximateUploadSpeed in class MultiClientState
        Returns:
        int the rate detected in Kbps
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • getHumanReadableName

        public java.lang.String getHumanReadableName()
        Description copied from class: MultiClientState
        Returns a human readable name for the state. Used within toString()
        Overrides:
        getHumanReadableName in class MultiClientState
        Returns:
        A human readable name
      • testApproximateDownloadSpeed

        protected int testApproximateDownloadSpeed()
                                            throws unlimited.core.util.common.exception.FCException,
                                                   java.io.IOException
        Description copied from class: MultiClientState
        Performs a quick test to determine the approximate download speed to the connected server.
        Overrides:
        testApproximateDownloadSpeed in class MultiClientState
        Returns:
        int the rate detected in Kbps
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • fileSystemEvents

        protected java.util.List<FileSystemEvent> fileSystemEvents​(long timeout)
                                                            throws unlimited.core.util.common.exception.FCException,
                                                                   java.io.IOException
        Description copied from class: MultiClientState
        Returns the file system events, (if any I assume).
        Overrides:
        fileSystemEvents in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • prms

        protected java.lang.String[] prms​(java.lang.String filename)
                                   throws unlimited.core.util.common.exception.FCException,
                                          java.io.IOException
        Description copied from class: MultiClientState
        Return the file permission of the file/directory listed in the argument from the remote server.
        Overrides:
        prms in class MultiClientState
        Returns:
        permissions
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • get

        protected void get​(java.lang.String localPath,
                           java.lang.String remoteFile,
                           int inRate,
                           long offset,
                           long size,
                           int numDFEncoders,
                           int blockSize,
                           int unitSize,
                           int mode)
                    throws unlimited.core.util.common.exception.FCException,
                           java.io.IOException,
                           java.security.NoSuchAlgorithmException
        Overrides:
        get in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
        java.security.NoSuchAlgorithmException
      • applyRemoteFileAttributesToLocalFile

        protected void applyRemoteFileAttributesToLocalFile​(java.nio.file.Path localFile,
                                                            java.lang.String remoteFile)
                                                     throws unlimited.core.util.common.exception.FCException,
                                                            java.io.IOException
        Description copied from class: MultiClientState
        Applies the remote file attributes to the local file instance.
        Overrides:
        applyRemoteFileAttributesToLocalFile in class MultiClientState
        Parameters:
        localFile - Path of the local file that you wish to change
        remoteFile - Path of the remote tile that you would like the attributes from
        Throws:
        java.io.IOException
        unlimited.core.util.common.exception.FCException
      • resetSession

        protected void resetSession()
                             throws unlimited.core.util.common.exception.FCException,
                                    java.io.IOException
        Overrides:
        resetSession in class MultiClientState
        Throws:
        unlimited.core.util.common.exception.FCException
        java.io.IOException
      • setTransferMode

        protected void setTransferMode()
      • getUserEmailAddress

        protected java.lang.String getUserEmailAddress()
                                                throws java.io.IOException
        Description copied from class: MultiClientState
        Get The User's Email Address When Called
        Overrides:
        getUserEmailAddress in class MultiClientState
        Returns:
        - A string containing the user's email address
        Throws:
        java.io.IOException - - If there are issues an exception will be thrown
      • getUserFullName

        protected java.lang.String getUserFullName()
                                            throws java.io.IOException
        Description copied from class: MultiClientState
        Get The User's Full Name When Called
        Overrides:
        getUserFullName in class MultiClientState
        Throws:
        java.io.IOException
      • sendWeblink

        protected WeblinkResult sendWeblink​(WeblinkDataContainer dataDO)
                                     throws unlimited.core.util.common.exception.FCException,
                                            java.io.IOException
        Description copied from class: MultiClientState
        Creates a weblink with the parameters provided by the client. Currently supported method for data creation
        Overrides:
        sendWeblink in class MultiClientState
        Returns:
        Data object containing the results of the weblink creation
        Throws:
        unlimited.core.util.common.exception.FCException - if a FileCatalyst protocol error occurs.
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
      • sendWeblink

        @Deprecated
        protected WeblinkResult sendWeblink​(java.util.List<java.lang.String> to,
                                            java.lang.String from,
                                            java.lang.String message,
                                            java.util.Set<java.lang.String> files)
                                     throws unlimited.core.util.common.exception.FCException,
                                            java.io.IOException
        Deprecated.
        Description copied from class: MultiClientState
        Method for creating a Weblink on FC Servers.
        Overrides:
        sendWeblink in class MultiClientState
        Parameters:
        to - List of to email addresses that you would like to send the link to
        message - Message contained in the email that is sent out
        files - File listing that you wish to include the link. All files are relative to connected user home
        Returns:
        Data object containing the results of the weblink creation
        Throws:
        unlimited.core.util.common.exception.FCException - if a FileCatalyst protocol error occurs.
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
      • getUserPermissions

        protected UserPermissionsContainer getUserPermissions()
                                                       throws unlimited.core.util.common.exception.FCException,
                                                              java.io.IOException
        Description copied from class: MultiClientState
        Gather's the user's permissions
        Overrides:
        getUserPermissions in class MultiClientState
        Returns:
        Throws:
        unlimited.core.util.common.exception.FCException - if a FileCatalyst protocol error occurs.
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
      • isLinkEnabledOnServer

        public boolean isLinkEnabledOnServer()
                                      throws unlimited.core.util.common.exception.FCException,
                                             java.io.IOException
        Description copied from class: MultiClientState
        Request if link is enabled on the server that you are connected too
        Overrides:
        isLinkEnabledOnServer in class MultiClientState
        Returns:
        Throws:
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
        unlimited.core.util.common.exception.FCException
      • uploadRange

        protected void uploadRange​(java.nio.file.Path localFile,
                                   java.lang.String remoteFile,
                                   long offset,
                                   long length)
                            throws java.io.IOException
        Description copied from class: MultiClientState
        Uploads a range of rate for the given file
        Overrides:
        uploadRange in class MultiClientState
        Parameters:
        localFile - The file the patch will be drawn from
        remoteFile - The file to be patched
        offset - Starting byte for the patch
        length - Length of the patch
        Throws:
        java.io.IOException - Problems with the transfer
      • downloadRange

        protected void downloadRange​(java.nio.file.Path localFile,
                                     java.lang.String remoteFile,
                                     long offset,
                                     long length)
                              throws java.io.IOException
        Description copied from class: MultiClientState
        Downloads a range of rate for the given file
        Overrides:
        downloadRange in class MultiClientState
        Parameters:
        localFile - The file the patch will be drawn from
        remoteFile - The file to be patched
        offset - Starting byte for the patch
        length - Length of the patch
        Throws:
        java.io.IOException - Problems with the transfer
      • getServerConfigurationValue

        public java.lang.String getServerConfigurationValue​(java.lang.String value)
                                                     throws java.io.IOException
        Description copied from class: MultiClientState
        Request if link is enabled on the server that you are connected too
        Overrides:
        getServerConfigurationValue in class MultiClientState
        Returns:
        Throws:
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
      • getAllAvailableServerConfigs

        public ServerConfigs getAllAvailableServerConfigs()
                                                   throws java.io.IOException
        Description copied from class: MultiClientState
        Request if link is enabled on the server that you are connected too
        Overrides:
        getAllAvailableServerConfigs in class MultiClientState
        Returns:
        Throws:
        java.io.IOException - if an error occurs either connecting to the destination server, or if a transfer I/O error occurs.
      • modtime

        protected void modtime​(FileListDataItem item)
                        throws java.io.IOException
        Description copied from class: MultiClientState
        This will update the modtime of the file existing on the server to whatever the incoming FileListDataItem is set to
        Overrides:
        modtime in class MultiClientState
        Parameters:
        item - - item with a modification time to be sent to the server;
        Throws:
        java.io.IOException
      • setUserEmailAddress

        protected void setUserEmailAddress​(java.lang.String newEmailAddress)
                                    throws java.io.IOException
        Description copied from class: MultiClientState
        Sets The User's Email Address When Called
        Overrides:
        setUserEmailAddress in class MultiClientState
        Parameters:
        newEmailAddress - - The New Email To Be Set
        Throws:
        java.io.IOException
      • setUserFullName

        protected void setUserFullName​(java.lang.String newFullName)
                                throws java.io.IOException
        Description copied from class: MultiClientState
        Set's The User's Name When Called
        Overrides:
        setUserFullName in class MultiClientState
        Throws:
        java.io.IOException