uima-ducc-pullservice/src/main/java/org/apache/uima/ducc/ps/service/dgen/DeployableGenerator.java [197:232]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public int getScaleout() {
    if (doc == null) { // Not a DD ?
      return 1;
    }

    String soValue = "";
    NodeList nodes = doc.getElementsByTagName("analysisEngine");
    if (nodes.getLength() > 0) {
      Element aeElement = (Element) nodes.item(0);
      String async = aeElement.getAttribute("async");
      // If async is omitted the default is false if there are no delegates
      if (async.isEmpty()) {
        if (aeElement.getElementsByTagName("delegates").getLength() == 0) {
          async = "false";
        }
      }
      // If async is false a scaleout setting can override the caspool size
      if (async.equals("false")) {
        nodes = aeElement.getElementsByTagName("scaleout");
        if (nodes.getLength() > 0) {
          Element soElement = (Element) nodes.item(0);
          soValue = soElement.getAttribute("numberOfInstances");
        }
      }
    }

    if (soValue.isEmpty()) {
      nodes = doc.getElementsByTagName("casPool");
      if (nodes.getLength() > 0) {
        Element cpElement = (Element) nodes.item(0);
        soValue = cpElement.getAttribute("numberOfCASes");
      }
    }

    return soValue.isEmpty() ? 1 : Integer.parseInt(soValue);
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



uima-ducc-user/src/main/java/org/apache/uima/ducc/user/dgen/DeployableGenerator.java [194:229]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public int getScaleout() {
	  if (doc == null) {  // Not a DD ?
	    return 1;
	  }

    String soValue = "";
    NodeList nodes = doc.getElementsByTagName("analysisEngine");
    if (nodes.getLength() > 0) {
      Element aeElement = (Element) nodes.item(0);
      String async = aeElement.getAttribute("async");
      // If async is omitted the default is false if there are no delegates
      if (async.isEmpty()) {
        if (aeElement.getElementsByTagName("delegates").getLength() == 0) {
          async = "false";
        } 
      }
      // If async is false a scaleout setting can override the caspool size
      if (async.equals("false")) {
        nodes = aeElement.getElementsByTagName("scaleout");
        if (nodes.getLength() > 0) {
          Element soElement = (Element) nodes.item(0);
          soValue = soElement.getAttribute("numberOfInstances");
        }
      }
    }
    
    if (soValue.isEmpty()) {
      nodes = doc.getElementsByTagName("casPool");
      if (nodes.getLength() > 0) {
        Element cpElement = (Element) nodes.item(0);
        soValue = cpElement.getAttribute("numberOfCASes");
      }
    }
    
    return soValue.isEmpty() ? 1 : Integer.parseInt(soValue);
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



