Changeset 10557 for trunk/gli


Ignore:
Timestamp:
2005-08-24T15:50:05+12:00 (19 years ago)
Author:
mdewsnip
Message:

The RemoteFileQueue instance is now owned by RemoteGreenstoneServer, not FileManager.

File:
1 edited

Legend:

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

    r10555 r10557  
    4545import org.greenstone.gatherer.gui.NewFolderOrFilePrompt;
    4646import org.greenstone.gatherer.gui.tree.DragTree;
    47 import org.greenstone.gatherer.remote.RemoteFileQueue;
    4847import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    4948import org.greenstone.gatherer.util.DragComponent;
     
    5857    /** Not only the queue of files to be moved, but also the object that moves them. */
    5958    static private FileQueue file_queue = null;
    60     static private RemoteFileQueue remote_file_queue = null;
    6159
    6260    public static int FILE_TYPE = 0;
     
    7169    file_queue = new FileQueue();
    7270    file_queue.start();
    73 
    74     if (Gatherer.isGsdlRemote) {
    75         remote_file_queue = new RemoteFileQueue();
    76         remote_file_queue.start();
    77     }
    7871    }
    7972
     
    177170        file_queue.addJob(id, source, source_nodes, target, target_node, type, true);
    178171        if (Gatherer.isGsdlRemote) {
    179             remote_file_queue.addJob(id, source_nodes, target_node, type);
     172            RemoteGreenstoneServer.addJob(id, source_nodes, target_node, type);
    180173        }
    181174        }
     
    262255                long id = System.currentTimeMillis();
    263256                CollectionTreeNode new_folder_node = new CollectionTreeNode(folder_file);
    264                 remote_file_queue.addJob(id, new FileNode[] { new_folder_node }, null, FileJob.NEW_FOLDER);
     257                RemoteGreenstoneServer.addJob(id, new FileNode[] { new_folder_node }, null, FileJob.NEW_FOLDER);
    265258            }
    266259            }
Note: See TracChangeset for help on using the changeset viewer.