Changeset 6276


Ignore:
Timestamp:
2003-12-16T11:49:53+13:00 (20 years ago)
Author:
kjdon
Message:

removed old configure request handling - all should use new system stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/core/MessageRouter.java

    r5402 r6276  
    556556        }
    557557        }
    558         return response;
    559        
    560     }
    561    
    562     // the old way, should all be using system now
    563     if (type.equals(GSXML.REQUEST_TYPE_CONFIGURE)) {
    564        
    565         // a list of configure requests - should put any error messages
    566         // or success messages into response
    567         NodeList commands = req.getElementsByTagName(GSXML.CONFIGURE_ELEM);
    568         for (int i=0; i<commands.getLength(); i++) {
    569         // all the commands should be Elements
    570         Element elem = (Element)commands.item(i);
    571         String action = elem.getAttribute(GSXML.ACTION_ATT);
    572         String module_name = elem.getAttribute(GSXML.NAME_ATT);
    573         String module_type = elem.getAttribute(GSXML.TYPE_ATT);
    574         if (action.equals(GSXML.CONFIG_ACTION_ACTIVATE)) {
    575             if (module_type.equals(GSXML.COLLECTION_ELEM)) {
    576             activateCollection(module_name);
    577             } else if (module_type.equals(GSXML.SERVICE_CLASS_ELEM)) {
    578             activateServiceRack(module_name);
    579             } else if (module_type.equals(GSXML.CLUSTER_ELEM)) {
    580             activateServiceCluster(module_name);
    581             } else {
    582             // cant process the activation
    583             // send an error
    584             }
    585         } else if (action.equals(GSXML.CONFIG_ACTION_DEACTIVATE)) {
    586             deactivateModule(module_type, module_name);
    587            
    588         }
    589         }
    590        
    591558        return response;
    592559       
Note: See TracChangeset for help on using the changeset viewer.