Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Issues with using ResourceManager

Hayk,

That document is very old. We've done a number of significant revisions since then.

The main starting point for resource managers is org.eclipse.eclipse.core.ModelManager. To get a list of resource managers, use:

IResourceManager[] rms = ModelManager.getInstance().getResourceManagers()

You will need to check the status of each RM to find out if it is running or not.

I'm not sure what you mean by the "active resource manager". There can be many resource managers running simultaneously, so you will need to use some other mechanism to determine which RM you are interested in (e.g. the name).

Regards,

Greg

On Sep 15, 2011, at 10:26 AM, Hayk Shoukourian wrote:

Hi,

I am trying to submit a job internally from the code. In order to do this, I need to determine the active resource manager and find a way to access it. I was trying to use the "ResourceManagerHost" class (http://wiki.eclipse.org/PTP/designs/rm_view) which is specified to be in rm.core package. Unfortunately, I was not able to see any of the specified classes or interfaces (http://wiki.eclipse.org/images/6/61/Ptp_resource_manager_view.pdf) in the mentioned package.

Could you please suggest how can the resource manager be accessed internally from the code (without reading any configuration files)?

Best regards,
Hayk
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev


Back to the top