Examples of UimaASPrimitiveDeploymentDescriptor


Examples of org.apache.uima.resourceSpecifier.factory.UimaASPrimitiveDeploymentDescriptor

        "PersonTitleAnnotator.xml",
        "PersonTitleAnnotatorQueue",
        broker.getMasterConnectorURI());
    context.setCasPoolSize(2);
    // create DD with default settings
    UimaASPrimitiveDeploymentDescriptor dd = DeploymentDescriptorFactory
        .createPrimitiveDeploymentDescriptor(context);

    // Get default Error Handler for process and change error threshold
    dd.getProcessErrorHandlingSettings().setThresholdCount(4);

    // Two instances of AE in a jvm
    dd.setScaleup(2);

    // Generate deployment descriptor in xml format
    String ddXML = dd.toXML();
    System.out.println(ddXML);
   
    File tempFile = File.createTempFile("Deploy_PersonTitle", ".xml");
    BufferedWriter out = new BufferedWriter(new FileWriter(tempFile));
    out.write(ddXML);
View Full Code Here

Examples of org.apache.uima.resourceSpecifier.factory.UimaASPrimitiveDeploymentDescriptor

  public static void main(String[] args) {
    try {
      System.setProperty(UimaUtils.FlowControllerResourceSpecifier, "org.apache.uima.flow.FixedFlowController");
      String fname = "0-uima-ae-descriptor-"+Utils.getPID()+".xml";
      UimaASPrimitiveDeploymentDescriptor d = UimaUtils.createUimaASDeploymentDescriptor(
          "test", "testDescr", "tcp://localhost:61616",
          "testEndpoint", 4, "c:/tmp", fname, args);
      System.out.println(d.toXML());

      List<String> cmOverrides = new ArrayList<String>();
      List<String> aeOverrides = new ArrayList<String>();
      List<String> ccOverrides = new ArrayList<String>();
      ccOverrides.add("outputDir=/home/ducc");
View Full Code Here

Examples of org.apache.uima.resourceSpecifier.factory.UimaASPrimitiveDeploymentDescriptor

        endpoint, brokerURL);
    // how many pipelines to deploy in the jvm
    context.setScaleup(scaleup);
    context.setProcessErrorThresholdCount(1);
    // Create UIMA AS deployment descriptor
    UimaASPrimitiveDeploymentDescriptor dd = DeploymentDescriptorFactory
        .createPrimitiveDeploymentDescriptor(context);
    return dd;
  }
View Full Code Here

Examples of org.apache.uima.resourceSpecifier.factory.UimaASPrimitiveDeploymentDescriptor

    List<List<String>> overrides = new ArrayList<List<String>>();
    for( IDuccUimaAggregateComponent component: aggregateConfiguration.getComponents()) {
      descriptorPaths.add(component.getDescriptor());
      overrides.add(component.getOverrides());
    }
    UimaASPrimitiveDeploymentDescriptor dd =
        UimaUtils.createUimaASDeploymentDescriptor(
            aggregateConfiguration.getName(),
            aggregateConfiguration.getDescription(),
            aggregateConfiguration.getBrokerURL(),
            aggregateConfiguration.getEndpoint()
            aggregateConfiguration.getThreadCount(),
            userLogDir,
            jobId+"-uima-ae-descriptor-"+Utils.getPID()+".xml",
          overrides,
          descriptorPaths.toArray(new String[descriptorPaths.size()])
          );
    return writeDDFile(dd.toXML(), jobId);
  }
View Full Code Here

Examples of org.apache.uima.resourceSpecifier.factory.UimaASPrimitiveDeploymentDescriptor

        "PersonTitleAnnotator.xml",
        "PersonTitleAnnotatorQueue",
        broker.getMasterConnectorURI());
    context.setCasPoolSize(2);
    // create DD with default settings
    UimaASPrimitiveDeploymentDescriptor dd = DeploymentDescriptorFactory
        .createPrimitiveDeploymentDescriptor(context);

    // Get default Error Handler for process and change error threshold
    dd.getProcessErrorHandlingSettings().setThresholdCount(4);

    // Two instances of AE in a jvm
    dd.setScaleup(2);

    // Generate deployment descriptor in xml format
    String ddXML = dd.toXML();
    System.out.println(ddXML);
   
    File tempFile = File.createTempFile("Deploy_PersonTitle", ".xml");
    BufferedWriter out = new BufferedWriter(new FileWriter(tempFile));
    out.write(ddXML);
View Full Code Here

Examples of org.apache.uima.resourceSpecifier.factory.UimaASPrimitiveDeploymentDescriptor

        "PersonTitleAnnotator.xml",
        "PersonTitleAnnotatorQueue",
        broker.getMasterConnectorURI());
    context.setCasPoolSize(2);
    // create DD with default settings
    UimaASPrimitiveDeploymentDescriptor dd = DeploymentDescriptorFactory
        .createPrimitiveDeploymentDescriptor(context);

    // Get default Error Handler for process and change error threshold
    dd.getProcessErrorHandlingSettings().setThresholdCount(4);

    // Two instances of AE in a jvm
    dd.setScaleup(2);

    // Generate deployment descriptor in xml format
    String ddXML = dd.toXML();
    System.out.println(ddXML);
   
    File tempFile = File.createTempFile("Deploy_PersonTitle", ".xml");
    BufferedWriter out = new BufferedWriter(new FileWriter(tempFile));
    out.write(ddXML);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.