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/Gatherer.java

    r17121 r17612  
    8585
    8686    static private Dimension size = new Dimension(800, 540);
     87    static public RemoteGreenstoneServer remoteGreenstoneServer = null;
    8788
    8889    /** Has the exit flag been set? */
     
    299300        // Finally, we're ready to find out the version of the remote Greenstone server
    300301        if(isGsdlRemote) {
     302        // instantiate the RemoteGreenstoneServer object first
     303        remoteGreenstoneServer = new RemoteGreenstoneServer();
     304
    301305        int greenstoneVersion = 2;
    302306        requestGLIServerURL();
    303307        gliserver_url_string = Configuration.gliserver_url.toString();
    304308       
    305         greenstoneVersion = RemoteGreenstoneServer.getGreenstoneVersion();
     309        greenstoneVersion = remoteGreenstoneServer.getGreenstoneVersion();
    306310        // Display the version to make error reports a lot more useful
    307311        System.err.println("Remote Greenstone server version: " + greenstoneVersion);
     
    316320            library_url_string = fedora_info.getLibraryURL();
    317321        } else {
    318             library_url_string = RemoteGreenstoneServer.getLibraryURL(Configuration.gliserver_url.toString());
     322            library_url_string = remoteGreenstoneServer.getLibraryURL(Configuration.gliserver_url.toString());
    319323        }
    320324        }
     
    472476    // If using a remote Greenstone we need to download the collection configurations now
    473477    if (Gatherer.isGsdlRemote) {
    474         if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
     478        if (remoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
    475479        // !! Something went wrong downloading the collection configurations
    476480        System.err.println("Error: Could not download collection configurations.");
     
    551555    // If using a remote Greenstone we need to download the collection configurations now
    552556    if (Gatherer.isGsdlRemote) {
    553         if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
     557        if (remoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
    554558        // !! Something went wrong downloading the collection configurations
    555559        System.err.println("Error: Could not download collection configurations.");
     
    616620    // If we're using a remote Greenstone server we need to make sure that all jobs have completed first
    617621    if (isGsdlRemote) {
    618         RemoteGreenstoneServer.exit();
     622        remoteGreenstoneServer.exit();
    619623    }
    620624
Note: See TracChangeset for help on using the changeset viewer.