airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saminda Wijeratne <samin...@gmail.com>
Subject Monitoring a running workflow using Airavata API
Date Tue, 20 Nov 2012 21:28:08 GMT
Once an experiment is launched a unique id is returned to identify that
experiment. You can use this unique id (here onwards called the *experiment
Id*) to monitor the progress of the experiment through Airavata API,

AiravataAPI airavataAPI = ....
String
experimentId=airavataAPI.getExecutionManager().runExperiment(templateId,
workflowInputs);
Monitor experimentMonitor =
airavataAPI.getExecutionManager().getExperimentMonitor(experimentId, new
MonitorEventListener() {
    public void notify(MonitorEventData eventData, MonitorEvent event) {
        System.out.println(event.getMessage());
        ....
    }
});
experimentMonitor.startMonitoring();

Regards,
Saminda

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message