Package org.apache.airavata.ws.monitor

Examples of org.apache.airavata.ws.monitor.Monitor.stopMonitoring()


    });
    experimentMonitor.startMonitoring();
    try {
      WorkflowExecutionStatus workflowInstanceStatus = getClient().getProvenanceManager().getWorkflowInstanceStatus(experimentId, experimentId);
      if (workflowInstanceStatus.getExecutionStatus()==State.FINISHED || workflowInstanceStatus.getExecutionStatus()==State.FAILED){
        experimentMonitor.stopMonitoring();
        return;
      }
    } catch (AiravataAPIInvocationException e) {
      //Workflow may not have started yet. Best to use the monitor to follow the progress
    }
View Full Code Here


      if (!monitor.getExperimentId().equals(">")){
        monitor.getEventDataRepository().registerEventListener(new EventDataListenerAdapter() {
          @Override
          public void notify(EventDataRepository eventDataRepo, EventData eventData) {
            if (eventData.getType()==EventType.WORKFLOW_TERMINATED || eventData.getType()==EventType.SENDING_FAULT){
              monitor.stopMonitoring();
            }
          }
        });
      }
      return monitor;
View Full Code Here

    });
    experimentMonitor.startMonitoring();
    try {
      WorkflowExecutionStatus workflowInstanceStatus = getClient().getProvenanceManager().getWorkflowInstanceStatus(experimentId, experimentId);
      if (workflowInstanceStatus.getExecutionStatus()==State.FINISHED || workflowInstanceStatus.getExecutionStatus()==State.FAILED){
        experimentMonitor.stopMonitoring();
        return;
      }
    } catch (AiravataAPIInvocationException e) {
      //Workflow may not have started yet. Best to use the monitor to follow the progress
    }
View Full Code Here

      if (!monitor.getExperimentId().equals(">")){
        monitor.getEventDataRepository().registerEventListener(new EventDataListenerAdapter() {
          @Override
          public void notify(EventDataRepository eventDataRepo, EventData eventData) {
            if (eventData.getType()==EventType.WORKFLOW_TERMINATED || eventData.getType()==EventType.SENDING_FAULT){
              monitor.stopMonitoring();
            }
          }
        });
      }
      return monitor;
View Full Code Here

    });
    experimentMonitor.startMonitoring();
    try {
      WorkflowExecutionStatus workflowInstanceStatus = getClient().getProvenanceManager().getWorkflowInstanceStatus(experimentId, experimentId);
      if (workflowInstanceStatus.getExecutionStatus()==State.FINISHED || workflowInstanceStatus.getExecutionStatus()==State.FAILED){
        experimentMonitor.stopMonitoring();
        return;
      }
    } catch (AiravataAPIInvocationException e) {
      //Workflow may not have started yet. Best to use the monitor to follow the progress
    }
View Full Code Here

      if (!monitor.getExperimentId().equals(">")){
        monitor.getEventDataRepository().registerEventListener(new EventDataListenerAdapter() {
          @Override
          public void notify(EventDataRepository eventDataRepo, EventData eventData) {
            if (eventData.getType()==EventType.WORKFLOW_TERMINATED || eventData.getType()==EventType.SENDING_FAULT){
              monitor.stopMonitoring();
            }
          }
        });
      }
      return monitor;
View Full Code Here

    });
    experimentMonitor.startMonitoring();
    try {
      WorkflowExecutionStatus workflowInstanceStatus = getClient().getProvenanceManager().getWorkflowInstanceStatus(experimentId, experimentId);
      if (workflowInstanceStatus.getExecutionStatus()==State.FINISHED || workflowInstanceStatus.getExecutionStatus()==State.FAILED){
        experimentMonitor.stopMonitoring();
        return;
      }
    } catch (AiravataAPIInvocationException e) {
      //Workflow may not have started yet. Best to use the monitor to follow the progress
    }
View Full Code Here

      if (!monitor.getExperimentId().equals(">")){
        monitor.getEventDataRepository().registerEventListener(new EventDataListenerAdapter() {
          @Override
          public void notify(EventDataRepository eventDataRepo, EventData eventData) {
            if (eventData.getType()==EventType.WORKFLOW_TERMINATED || eventData.getType()==EventType.SENDING_FAULT){
              monitor.stopMonitoring();
            }
          }
        });
      }
      return monitor;
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.