You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by Saminda Wijeratne <sa...@gmail.com> on 2012/11/20 22:28:08 UTC

Monitoring a running workflow using Airavata API

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