Package org.apache.oodt.cas.workflow.system

Examples of org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManagerClient


  public WorkflowManagerUtils(String urlStr) {
    this(safeGetUrlFromString(urlStr));
  }

  public WorkflowManagerUtils(URL url) {
    this.client = new XmlRpcWorkflowManagerClient(url);
    this.wmUrl = url;
  }
View Full Code Here


  private XmlRpcWorkflowManagerClient wm;

  public WorkflowMgrConn(String wmUrlStr) {
    try {
      this.wm = new XmlRpcWorkflowManagerClient(new URL(wmUrlStr));
    } catch (MalformedURLException e) {
      LOG.log(Level.SEVERE, "Unable to contact Workflow Manager at URL: ["
          + wmUrlStr + "]: Message: " + e.getMessage());
      this.wm = null;
    }
View Full Code Here

                    && !propertyAdderClasspath.equals(""))
                this.runPropertyAdder(this
                        .loadPropertyAdder(propertyAdderClasspath));

            // configure workflow manager
            wm = new XmlRpcWorkflowManagerClient(new URL(this.pgeMetadata
                    .getMetadataValue(PcsMetadataKeys.WORKFLOW_MANAGER_URL)));
            workflowInstId = this.pgeMetadata
                    .getMetadataValue(CoreMetKeys.WORKFLOW_INST_ID);

        } catch (Exception e) {
View Full Code Here

   protected XmlRpcWorkflowManagerClient createWorkflowManagerClient()
         throws Exception {
      String url = pgeMetadata.getMetadata(WORKFLOW_MANAGER_URL);
      logger.info("Creating WorkflowManager client for url [" + url + "]");
      Validate.notNull(url, "Must specify " + WORKFLOW_MANAGER_URL);
      return new XmlRpcWorkflowManagerClient(new URL(url));
   }
View Full Code Here

    }

    public boolean performAction(File product, Metadata productMetadata)
            throws CrawlerActionException {
        try {
            XmlRpcWorkflowManagerClient wClient = new XmlRpcWorkflowManagerClient(
                    new URL(this.workflowMgrUrl));
            String ingestSuffix = this.ingestSuffix;
            return wClient.sendEvent(productMetadata.getMetadata(PRODUCT_TYPE)
                    + ingestSuffix, productMetadata);
        } catch (Exception e) {
            throw new CrawlerActionException(
                    "Failed to update workflow manager : " + e.getMessage());
        }
View Full Code Here

   }

   public void testUpdateStatus() throws Exception {
      final Map<String, String> args = Maps.newHashMap();
      PGETaskInstance pgeTask = createTestInstance();
      pgeTask.wm = new XmlRpcWorkflowManagerClient(null) {
         public boolean updateWorkflowInstanceStatus(String instanceId,
               String status) {
            args.put("InstanceId", instanceId);
            args.put("Status", status);
            return true;
View Full Code Here

   public void testCreateWorkflowManagerClient() throws Exception {
      PGETaskInstance pgeTask = createTestInstance();
      pgeTask.pgeMetadata.replaceMetadata(WORKFLOW_MANAGER_URL,
            "http://localhost:8888");
      XmlRpcWorkflowManagerClient wmClient =
         pgeTask.createWorkflowManagerClient();
      assertNotNull(wmClient);
   }
View Full Code Here

   protected XmlRpcWorkflowManagerClient createWorkflowManagerClient()
         throws Exception {
      String url = pgeMetadata.getMetadata(WORKFLOW_MANAGER_URL);
      logger.info("Creating WorkflowManager client for url [" + url + "]");
      Validate.notNull(url, "Must specify " + WORKFLOW_MANAGER_URL);
      return new XmlRpcWorkflowManagerClient(new URL(url));
   }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManagerClient

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.