Changeset 10248


Ignore:
Timestamp:
2005-07-14T11:04:17+12:00 (19 years ago)
Author:
mdewsnip
Message:

A new RemoteFileQueue class that is conceptually similar to FileQueue but makes the necessary changes to the collection on the server.

Location:
trunk/gli/src/org/greenstone/gatherer/file
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r10247 r10248  
    5656    /** Not only the queue of files to be moved, but also the object that moves them. */
    5757    static private FileQueue file_queue = null;
     58    static private RemoteFileQueue remote_file_queue = null;
    5859
    5960    public static int FILE_TYPE = 0;
     
    6869    file_queue = new FileQueue();
    6970    file_queue.start();
     71
     72    if (Gatherer.isGsdlRemote) {
     73        remote_file_queue = new RemoteFileQueue();
     74        remote_file_queue.start();
     75    }
    7076    }
    7177
     
    168174        if (!cancelled) {
    169175        file_queue.addJob(id, source, source_nodes, target, target_node, type, true);
     176        if (Gatherer.isGsdlRemote) {
     177            remote_file_queue.addJob(id, source, source_nodes, target, target_node, type);
     178        }
    170179        }
    171180
Note: See TracChangeset for help on using the changeset viewer.