Examples of DuccUimaDeploymentDescriptor


Examples of org.apache.uima.ducc.transport.event.common.DuccUimaDeploymentDescriptor

      // Handle UIMA deployment descriptor
      String directory = job.getLogDirectory()+job.getDuccId();
      DeploymentDescriptorGenerator ddg = new DeploymentDescriptorGenerator("JD",duccOut,directory);
      IDuccUimaDeployableConfiguration udc = job.getUimaDeployableConfiguration();
      String process_DD = ddg.generate(udc, job.getDuccId().toString());
      IDuccUimaDeploymentDescriptor uimaDeploymentDescriptor = new DuccUimaDeploymentDescriptor(process_DD);
      driverStatusReport.setUimaDeploymentDescriptor(uimaDeploymentDescriptor);
      // Prepare for gathering of UIMA performance statistics
      String logsjobdir = job.getLogDirectory()+job.getDuccId().getFriendly()+File.separator;
      performanceSummaryWriter = new PerformanceSummaryWriter(logsjobdir);
      workItemStateManager = new WorkItemStateManager(logsjobdir);
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccUimaDeploymentDescriptor

    ServiceDeploymentType serviceDeploymentType = job.getServiceDeploymentType();
    if(isJpUima(duccType, serviceDeploymentType)) {
      String process_DD = jobRequestProperties.getProperty(JobSpecificationProperties.key_process_DD);
      if(process_DD != null) {
        // user DD
        IDuccUimaDeploymentDescriptor uimaDeploymentDescriptor = new DuccUimaDeploymentDescriptor(process_DD);
        job.setUimaDeployableConfiguration(uimaDeploymentDescriptor);
        dump(job, uimaDeploymentDescriptor);
      }
      else {
        // UIMA aggregate
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccUimaDeploymentDescriptor

      ManagedUimaService ms = new ManagedUimaService(
          "${DUCC_HOME}/lib/saxon8/saxon8.jar",
          "${DUCC_HOME}/bin/dd2spring.xsl", null,
          new DefaultCamelContext());
      ms.deploy(new String[] { XStreamUtils
          .marshall(new DuccUimaDeploymentDescriptor(args[0])) });
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
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.