Package org.apache.airavata.ws.monitor

Examples of org.apache.airavata.ws.monitor.MonitorConfiguration


     * Shows the dialog.
     */
    public void show() {
        this.workflow = this.engine.getGUI().getWorkflow();

        MonitorConfiguration notifConfig = this.engine.getMonitor().getConfiguration();
        if (notifConfig.getBrokerURL() == null) {
            this.engine.getGUI().getErrorWindow().error(ErrorMessages.BROKER_URL_NOT_SET_ERROR);
            return;
        }

        // Create input fields
View Full Code Here


        // Use topic as a base of workflow instance ID so that the monitor can
        // find it.
        URI workfowInstanceID = URI.create(StringUtil.convertToJavaIdentifier(topic));
        this.workflow.setGPELInstanceID(workfowInstanceID);

        MonitorConfiguration notifConfig = this.engine.getMonitor().getConfiguration();
        notifConfig.setTopic(topic);
        arguments.add("-" + JythonScript.TOPIC_VARIABLE);
        arguments.add(topic);
        Collection<WSNode> wsNodes = GraphUtil.getWSNodes(this.engine.getGUI().getWorkflow().getGraph());
        for (WSNode node : wsNodes) {
            ((WSNodeGUI) NodeController.getGUI(node)).setInteractiveMode(false);
View Full Code Here

  }

  @Override
  public Monitor getExperimentMonitor(String experimentId,final EventDataListener listener)
      throws AiravataAPIInvocationException {
    MonitorConfiguration monitorConfiguration;
    try {
      monitorConfiguration = new MonitorConfiguration(
          getClient().getClientConfiguration().getMessagebrokerURL().toURI(), experimentId,
          true, getClient().getClientConfiguration().getMessageboxURL().toURI());
      final Monitor monitor = new Monitor(monitorConfiguration);
      monitor.printRawMessage(false);
      if (listener!=null) {
View Full Code Here

    final String gfacURLString = this.getConfig().getConfiguration().getGFacURL().toString();
    if (null == wsdlLocation) {
      if (gfacURLString.startsWith("https")) {
        LeadContextHeader leadCtxHeader = null;
        try {
          leadCtxHeader = XBayaUtil.buildLeadContextHeader(this.getWorkflow(), this.getConfig().getConfiguration(), new MonitorConfiguration(this
              .getConfig().getConfiguration().getBrokerURL(), this.config.getTopic(), true, this.getConfig().getConfiguration()
              .getMessageBoxURL()), wsNode.getID(), null);
        } catch (URISyntaxException e) {
          throw new WorkflowException(e);
        }
View Full Code Here

    QName portTypeQName = wsComponent.getPortTypeQName();
    if (null == wsdlLocation) {
      if (gfacURLString.startsWith("https")) {
        LeadContextHeader leadCtxHeader = null;
        try {
          leadCtxHeader = XBayaUtil.buildLeadContextHeader(this.getWorkflow(), this.getConfig().getConfiguration(), new MonitorConfiguration(this
              .getConfig().getConfiguration().getBrokerURL(), this.config.getTopic(), true, this.getConfig().getConfiguration()
              .getMessageBoxURL()), foreachWSNode.getID(), null);
        } catch (URISyntaxException e) {
          throw new WorkflowException(e);
        }
View Full Code Here

  }

  @Override
  public Monitor getExperimentMonitor(String experimentId,final EventDataListener listener)
      throws AiravataAPIInvocationException {
    MonitorConfiguration monitorConfiguration;
    try {
      monitorConfiguration = new MonitorConfiguration(
          getClient().getClientConfiguration().getMessagebrokerURL().toURI(), experimentId,
          true, getClient().getClientConfiguration().getMessageboxURL().toURI());
      final Monitor monitor = new Monitor(monitorConfiguration);
      monitor.printRawMessage(false);
      if (listener!=null) {
View Full Code Here

     * Shows the dialog.
     */
    public void show() {
        this.workflow = this.engine.getGUI().getWorkflow();

        MonitorConfiguration notifConfig = this.engine.getMonitor().getConfiguration();
        if (notifConfig.getBrokerURL() == null) {
            this.engine.getGUI().getErrorWindow().error(ErrorMessages.BROKER_URL_NOT_SET_ERROR);
            return;
        }

        // Create input fields
View Full Code Here

        // Use topic as a base of workflow instance ID so that the monitor can
        // find it.
        URI workfowInstanceID = URI.create(StringUtil.convertToJavaIdentifier(topic));
        this.workflow.setGPELInstanceID(workfowInstanceID);

        MonitorConfiguration notifConfig = this.engine.getMonitor().getConfiguration();
        notifConfig.setTopic(topic);
        arguments.add("-" + JythonScript.TOPIC_VARIABLE);
        arguments.add(topic);
        Collection<WSNode> wsNodes = GraphUtil.getWSNodes(this.engine.getGUI().getWorkflow().getGraph());
        for (WSNode node : wsNodes) {
            ((WSNodeGUI) NodeController.getGUI(node)).setInteractiveMode(false);
View Full Code Here

    public XBayaEngine(XBayaConfiguration configuration) {
        this.configuration = configuration;

        // Creates some essential objects.

        MonitorConfiguration monitorConfiguration = new MonitorConfiguration(configuration.getBrokerURL(),
                configuration.getTopic(), configuration.isPullMode(), configuration.getMessageBoxURL());
        this.monitor = new Monitor(monitorConfiguration);

        // MyProxy
        // this.myProxyClient = new MyProxyClient(this.configuration.getMyProxyServer(),
View Full Code Here

  }

  @Override
  public Monitor getExperimentMonitor(String experimentId,final EventDataListener listener)
      throws AiravataAPIInvocationException {
    MonitorConfiguration monitorConfiguration;
    try {
      monitorConfiguration = new MonitorConfiguration(
          getClient().getClientConfiguration().getMessagebrokerURL().toURI(), experimentId,
          true, getClient().getClientConfiguration().getMessageboxURL().toURI());
      final Monitor monitor = new Monitor(monitorConfiguration);
      monitor.printRawMessage(false);
      if (listener!=null) {
View Full Code Here

TOP

Related Classes of org.apache.airavata.ws.monitor.MonitorConfiguration

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.