Examples of XBayaConfiguration


Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

            String value = parameterTextField.getText();
            arguments.add("-" + id);
            arguments.add(value);
        }

        XBayaConfiguration config = this.engine.getConfiguration();

        String gfacString = this.gfacTextField.getText();
        if (gfacString.length() != 0) {
            try {
                URI uri = new URI(gfacString).parseServerAuthority();
                config.setGFacURL(uri);
            } catch (URISyntaxException e) {
                this.engine.getErrorWindow().error(
                        ErrorMessages.GFAC_URL_WRONG, e);
                return;
            }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

    // Set to the config so that they will be reused.
    MonitorConfiguration monitorConfig = this.engine.getMonitor()
        .getConfiguration();
    monitorConfig.setTopic(topic);
    XBayaConfiguration config = this.engine.getConfiguration();
    config.setXRegistryURL(xRegistryURL);
    config.setGFacURL(gfacURL);

    // Deal with the Lead resource mapping

    LeadResourceMapping resourceMapping = null;
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

    rowWeights.add(new Double(0));
    rowWeights.add(new Double(0));
    rowWeights.add(new Double(1));
    this.parameterPanel.layout(columnWeights, rowWeights);

    XBayaConfiguration configuration = this.engine.getConfiguration();
    MonitorConfiguration monitorConfiguration = this.engine.getMonitor()
        .getConfiguration();

    // Topic
    String topic = monitorConfiguration.getTopic();
    if (topic != null) {
      this.topicTextField.setText(topic);
    } else {
      this.topicTextField.setText(UUID.randomUUID().toString());
    }

    // XRegistry
    if (null != configuration.getXRegistryURL()) {
      this.xRegistryTextField.setText(configuration.getXRegistryURL());
    } else {
      this.xRegistryTextField
          .setText(XBayaConstants.DEFAULT_XREGISTRY_URL);
    }

    // GFac URL
    this.gfacTextField.setText(configuration.getGFacURL());

    this.dialog.show();
  }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

  public static LeadContextHeader buildLeadContextHeader(
      final XBayaEngine engine, MonitorConfiguration monitorConfiguration, String nodeId, LeadResourceMapping resourceMapping)
      throws URISyntaxException {
   
    XBayaConfiguration configuration = engine.getConfiguration();
    Workflow workflow = engine.getWorkflow();
   
    LeadContextHeader leadContext = buildLeadContextHeader(workflow, configuration, engine.getMyLead(),
        monitorConfiguration, nodeId, resourceMapping);
   
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

        rowWeights.add(new Double(0));
        rowWeights.add(new Double(0));
        rowWeights.add(new Double(1));
        this.parameterPanel.layout(columnWeights, rowWeights);

        XBayaConfiguration configuration = this.engine.getConfiguration();
        MonitorConfiguration monitorConfiguration = this.engine.getMonitor()
                .getConfiguration();

        // Topic
        String topic = monitorConfiguration.getTopic();
        this.topicTextField.setText(topic);

        // DSC URL
        this.dscTextField.setText(configuration.getDSCURL());

        // XRegistry
        this.xRegistryTextField.setText(configuration.getXRegistryURL());

        // GFac URL
        this.gfacTextField.setText(configuration.getGFacURL());

        this.dialog.show();
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

        // Set to the config so that they will be reused.
        MonitorConfiguration monitorConfig = this.engine.getMonitor()
                .getConfiguration();
        monitorConfig.setTopic(topic);
        XBayaConfiguration config = this.engine.getConfiguration();
        config.setDSCURL(dscURL);
        config.setXRegistryURL(xRegistryURL);
        config.setGFacURL(gfacURL);

        this.invoker.invoke(this.workflow, inputs, redeploy);

        hide();
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

    } catch (GraphException e) {
      throw new WorkflowProxyException(e);
    } catch (ComponentException e) {
      throw new WorkflowProxyException(e);
    }
    XBayaConfiguration configuration = this.xbayaEngine.getConfiguration();
    WsdlDefinitions workflowWSDL;
    try {
      workflowWSDL = workflow.getOdeWorkflowWSDL(configuration
          .getDSCURL(), configuration.getODEURL());
    } catch (Exception e) {
      // shouldnt happen cos we have already called this once
      throw new XBayaRuntimeException(e);
    }
    org.xmlpull.infoset.XmlElement service = workflowWSDL.xml().element(
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

      Workflow workflow, URI dscURI) throws WorkflowProxyException,
      XmlBuilderException, GraphException, ComponentException {
    try {
      String workflowName = workflow.getName();
      URI templateId = workflow.getUniqueWorkflowName();
      XBayaConfiguration configuration = this.xbayaEngine
          .getConfiguration();
      GpelProcess gpelProcess = null;
      String processString = null;

      gpelProcess = workflow.getOdeProcess(dscURI, configuration
          .getODEURL());
      processString = gpelProcess.xmlStringPretty();

      BufferedImage image = workflow.getImage();
      WsdlDefinitions workflowWSDL = workflow.getOdeWorkflowWSDL(dscURI,
          configuration.getODEURL());

      // do some error checking here
      if (workflowName == null || "".equals(workflowName)) {
        throw new IllegalStateException("No workflow name given");
      }

      DeploymentInformationDocument document = DeploymentInformationDocument.Factory
          .newInstance();
      DeploymentInformationDocument.DeploymentInformation deploymentInformation = DeploymentInformationDocument.DeploymentInformation.Factory
          .newInstance();
      DeploymentDocumentsType documentsType = DeploymentDocumentsType.Factory
          .newInstance();

      // setting the process name
      deploymentInformation.setProcessName(StringUtil
          .convertToJavaIdentifier(workflowName));

      // setting workflow template id
      if (templateId != null) {
        deploymentInformation.setTemplateId(templateId.toString());
      }

      // setting process GPEL

      XmlObject gpelProcessXmlObject = XBeansUtil
          .xmlElementToXmlObject(processString);
      documentsType.setBPEL(gpelProcessXmlObject);

      // setting deployment descriptors
      documentsType.setDeploymentDescriptor(XmlObject.Factory
          .parse(XmlConstants.BUILDER
              .serializeToStringPretty(workflow
                  .getODEDeploymentDescriptor(dscURI,
                      configuration.getODEURL()))));

      XMLFile processWSDL = XMLFile.Factory.newInstance();
      processWSDL.setFileName(workflowWSDL.xml().attributeValue("name")
          + ".wsdl");
      processWSDL.setContent(XBeansUtil
          .xmlElementToXmlObject(workflowWSDL.xmlStringPretty()));
      documentsType.setProcessWSDL(processWSDL);

      XMLFile serviceWSDL;
      Map<String, WsdlDefinitions> wsdlMap = workflow.getOdeServiceWSDLs(
          dscURI, configuration.getODEURL());
      XMLFile[] serviceWSDLs = new XMLFile[wsdlMap.size() + 3];
      int index = 0;
      for (String id : wsdlMap.keySet()) {
        WsdlDefinitions wsdl = wsdlMap.get(id);
        serviceWSDL = XMLFile.Factory.newInstance();
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

    // Settings | File Templates.
  }

  private LeadContextHeader getLeadContextHeader() {
    LeadContextHeaderHelper helper = new LeadContextHeaderHelper();
    helper.setXBayaConfiguration(new XBayaConfiguration());
    LeadContextHeader leadContext = helper.getLeadContextHeader();
    leadContext.setWorkflowId(URI
        .create("http://host/2005/11/09/workflowinstace"));
    leadContext.setNodeId("decoder1");
    leadContext.setTimeStep("5");
View Full Code Here

Examples of edu.indiana.extreme.xbaya.XBayaConfiguration

    /**
     * Shows the dialog.
     */
    public void show() {
        XBayaConfiguration configuration = this.engine.getConfiguration();
        this.urlTextField.setText(configuration.getKarmaURL());
        this.idTextField.setText(configuration.getKarmaWorkflowInstanceID());

        this.dialog.show();
    }
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.