Package org.hyperic.util.config

Examples of org.hyperic.util.config.ConfigResponse


   
    for (final Object obj : services) {
      if (obj instanceof ServiceResource) {
        final ServiceResource service = (ServiceResource) obj;
       
        final ConfigResponse config = service.getProductConfig();
        final String dfValue = config.getValue(dynamicFieldName);
        final Matcher m = dynamicFieldPattern.matcher(dfValue);
       
        if (m.matches() && m.groupCount() > 0) {
          final String constantFieldValue = m.group(1);
          config.setValue(dynamicFieldName, constantFieldValue);
         
          final String formatedFieldValue = formatFieldValue(targetFormat, constantFieldValue);
         
          final String name = formatAutoInventoryName(service.getType(),
              serverConfig, config, null);
         
          config.setValue(dynamicFieldName, formatedFieldValue);
         
          service.setName(name);
          service.setProductConfig(config);
         
          logInfo(log, "Found dynamic field value '", dfValue, "', converted it into '", formatedFieldValue, "'.");
View Full Code Here

TOP

Related Classes of org.hyperic.util.config.ConfigResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.