Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Accessing parallel launch resource attributes

Hi Wyatt,

The attributes are roughly divided into RM-specific and non RM- specific. The latter are defined in org.eclipse.ptp.core.IPTPLaunchConfigurationConstants and these correspond to the Application, Arguments, Synchronize, and Debugger tabs. The former are defined in the RM plugin and correspond to the Resources tab. I say "roughly" because there may be some non RM- specific attributes that are no longer used, but haven't been cleaned out yet.

Unfortunately, number of processes falls into the RM-specific attributes, since not all systems may require this. I'm not quite sure about the best way to deal with it though. One way would be to provide a global number of processes attribute that all RM's use, and which defaults to 1 in the case of RM's that don't need it. But this doesn't address the issue of other RM-specific attributes that you might need access to (are there any?) A more generic solution would be to query the RM for the attributes, but this would still require some knowledge of the attributes you were expecting. The debugger actually queries the internal model to find out the number of processes for a job, but this only provides the information after the job has started, so is no use if you need it before then.

I don't know what the best solution is. Suggestions appreciated.

Greg

On Dec 5, 2008, at 7:17 PM, Wyatt Spear wrote:

Greetings,

I need to retrieve and alter parallel launch parameters programatically to support some of the external tools framework's capabilities. I have access to the LaunchConfiguration and the ILaunch object provided by the PTP's launch configuration delegate but I am having trouble tracking down the configuration attribute names for things like the number of processes to be run. I haven't dug deep enough to be sure but it looks like there are now different attribute names for these parameters depending on which resource manager is used. Does anyone know how I can recover these values from within Eclipse?

Thanks,
Wyatt Spear
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top