airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lahiru Gunathilake (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-635) Providing sample to configure workflow context header for each node
Date Tue, 20 Nov 2012 18:46:58 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501372#comment-13501372
] 

Lahiru Gunathilake commented on AIRAVATA-635:
---------------------------------------------

WorkflowContextHeaderBuilder workflowContextHeader = airavataClient.getExecutionManager().createWorkflowContextHeader();
 		WorkflowSchedulingContext workflowSchedulingContext= WorkflowSchedulingContext.Factory.newInstance();
		workflowContextHeader.setWorkflowSchedulingContext(workflowSchedulingContext);	
ApplicationSchedulingContext applicationSchedulingContext =     workflowContextHeader.getWorkflowSchedulingContext().addNewApplicationSchedulingContext();
			applicationSchedulingContext.setCpuCount(cpuCount);
			applicationSchedulingContext.setNodeCount(nodeCount);
        applicationSchedulingContext.setServiceId("NodeId");
airavataClient.getExecutionManager().runExperiment(templateId, workflowInputs, AiravataClientManager.getCurrentUser(),null,
workflowInstanceName,workflowContextHeader);
// Like this you can add multiple ApplicationContext with required NodeID.

                
> Providing sample to configure workflow context header for each node
> -------------------------------------------------------------------
>
>                 Key: AIRAVATA-635
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-635
>             Project: Airavata
>          Issue Type: Bug
>          Components: Workflow Tracking
>         Environment: mac
>            Reporter: Lahiru Gunathilake
>             Fix For: 0.7
>
>
> $subject

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message