Ignore:
Timestamp:
2008-10-24T17:45:51+13:00 (16 years ago)
Author:
ak19
Message:

Turned class RemoteGreenstoneServer.java from an all-static class into a regular OOP class. It is now also split into three files (the other two being ActionQueue.java and RemoteGreenstoneServerAction.java).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/collection/CollectionManager.java

    r17012 r17612  
    379379    // Remove the lock file on the server
    380380    if (Gatherer.isGsdlRemote) {
    381         RemoteGreenstoneServer.deleteCollectionFile(collection.getName(), lock_file);
     381        Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection.getName(), lock_file);
    382382    }
    383383
     
    547547        collection_import_directory.mkdirs();
    548548        if (Gatherer.isGsdlRemote) {
    549             RemoteGreenstoneServer.newCollectionDirectory(name, collection_import_directory);
     549            Gatherer.remoteGreenstoneServer.newCollectionDirectory(name, collection_import_directory);
    550550        }
    551551        }
     
    581581        if (Gatherer.isGsdlRemote) {
    582582            String base_collection_name = base_collection_directory.getName();
    583             RemoteGreenstoneServer.downloadCollection(base_collection_name);
     583            Gatherer.remoteGreenstoneServer.downloadCollection(base_collection_name);
    584584        }
    585585
     
    765765    // Delete the collection on the server if we're using a remote Greenstone
    766766    if (Gatherer.isGsdlRemote) {
    767         RemoteGreenstoneServer.deleteCollection(collection_name);
     767        Gatherer.remoteGreenstoneServer.deleteCollection(collection_name);
    768768    }
    769769
     
    10561056        // If we're using a remote Greenstone server, upload the metadata file
    10571057        if (Gatherer.isGsdlRemote) {
    1058             RemoteGreenstoneServer.uploadCollectionFile(collection.getName(), metadata_set_file);
     1058            Gatherer.remoteGreenstoneServer.uploadCollectionFile(collection.getName(), metadata_set_file);
    10591059        }
    10601060        }
     
    11221122    if (Gatherer.isGsdlRemote) {
    11231123        String collection_name = location.substring(location.lastIndexOf(File.separator) + 1, location.length() - ".col".length());
    1124         if (RemoteGreenstoneServer.downloadCollection(collection_name).equals("")) {
     1124        if (Gatherer.remoteGreenstoneServer.downloadCollection(collection_name).equals("")) {
    11251125        return;
    11261126        }
     
    16181618        // If we're using a remote Greenstone server, delete the metadata file on the server
    16191619        if (Gatherer.isGsdlRemote) {
    1620         RemoteGreenstoneServer.deleteCollectionFile(collection.getName(), metadata_set_file);
     1620        Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection.getName(), metadata_set_file);
    16211621        }
    16221622    }
     
    17501750
    17511751        if (Gatherer.isGsdlRemote) {
    1752             RemoteGreenstoneServer.deleteCollectionFile(collection.getName(), new File(getLoadedCollectionIndexDirectoryPath()));
    1753             RemoteGreenstoneServer.moveCollectionFile(collection.getName(), new File(getLoadedCollectionBuildingDirectoryPath()), new File(getLoadedCollectionIndexDirectoryPath()));
     1752            Gatherer.remoteGreenstoneServer.deleteCollectionFile(
     1753                             collection.getName(), new File(getLoadedCollectionIndexDirectoryPath()));
     1754            Gatherer.remoteGreenstoneServer.moveCollectionFile(collection.getName(),
     1755                    new File(getLoadedCollectionBuildingDirectoryPath()), new File(getLoadedCollectionIndexDirectoryPath()));
    17541756        }
    17551757
Note: See TracChangeset for help on using the changeset viewer.