Package edu.indiana.extreme.xbaya

Examples of edu.indiana.extreme.xbaya.XBayaRuntimeException


    private void connect() throws ComponentRegistryException {
        try {
      this.xregistryClient = new XRegistryClient(this.proxy, XBayaSecurity.getTrustedCertificates(),
          this.url.toString());
    } catch (XRegistryClientException e) {
      throw new XBayaRuntimeException(e);
    }
    }
View Full Code Here


                            + type);
        }
        XmlElement notificationSource = event.element(WOR_NS,
                NOTIFICATION_SOURCE_TAG);
        if (notificationSource == null) {
            throw new XBayaRuntimeException("The notification should have "
                    + NOTIFICATION_SOURCE_TAG + " element.");
        }
        String workflowInstanceID = notificationSource.attributeValue(WOR_NS,
                SERVICE_ID_ATTRIBUTE);
        if (workflowInstanceID == null) {
            throw new XBayaRuntimeException("The notification should have "
                    + SERVICE_ID_ATTRIBUTE + " attribute.");
        }
        try {
            return new URI(workflowInstanceID);
        } catch (URISyntaxException e) {
            throw new XBayaRuntimeException(e);
        }
    }
View Full Code Here

    if (null == this.gssCredential) {
      new MyProxyDialog(this.engine).show(true);
      this.gssCredential = this.engine.getMyProxyClient().getProxy();
      // if its still null => user cancelled
      if (null == this.gssCredential) {
        throw new XBayaRuntimeException("GSI Credintial cannot be null");
      }
    }
    if (this.xregistryURL == null) {
      this.xregistryURL = XBayaConstants.DEFAULT_XREGISTRY_URL;
    }
    if (this.xregistryURL == null) {
      throw new XBayaRuntimeException("XRegistry URL cannot be null");
    }

    try {
      this.xregistryClient = new XRegistryClient(this.gssCredential, XBayaSecurity.getTrustedCertificates(), this.xregistryURL.toString());
    } catch (XRegistryClientException e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here

      // System.out.println(XmlConstants.BUILDER.serializeToStringPretty(xwf
      // ));
      Workflow workflow = new Workflow(xwf);
      return workflow;
    } catch (Exception e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here

        connectToXRegistry();
      }

      return this.xregistryClient.findHosts(hostName);
    } catch (XRegistryClientException e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here

        connectToXRegistry();
      }

      return this.xregistryClient.findAppDesc(appName);
    } catch (XRegistryClientException e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here

        connectToXRegistry();
      }

      return this.xregistryClient.findServiceDesc(serviceName);
    } catch (XRegistryClientException e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here

        connectToXRegistry();
      }

      return this.xregistryClient.findResource(rescName);
    } catch (XRegistryClientException e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here

  public URI getUniqueWorkflowName() {

    try {
      return new URI(XBayaConstants.LEAD_NS + "/" + this.getName());
    } catch (URISyntaxException e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here

  public URI getNameSpace() {
    try {
      return new URI(XBayaConstants.LEAD_NS);
    } catch (URISyntaxException e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.XBayaRuntimeException

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.