Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Locating resource managers using PTP service model

Hi Dave,

A better way to do this is get the launch service provider and check if it is an instance of IResourceManagerConfiguration. If it is, cast it into one, then call getRemoteServicesId().

Greg

On Oct 1, 2009, at 10:32 AM, Dave Wootton wrote:

Greg
I'm trying to get access to the IRemoteServices object so I can use the connection manager, file manager and process builder associated with it. Previously, I was doing this by finding the corresponding resource manager
and then getting the IRemoteServices object associated with it.

I think I've found how to solve this using the service configuration. I
get the launch service provider from the current/default service
configuration and ensure it is an instance of
AbstractResourceManagerServiceProvider. If it is, I call
AbstractResourceManagerServiceProvider.getRemoteServicesId() to get the
remote service identifer. If that is not null, then I call
PTPRemoteCorePlugin.getRemoteServices using that identifer. That seems to
work but I havn't finished the code yet.

Does this seem reasonable?
Dave



From:
Greg Watson <g.watson@xxxxxxxxxxxx>
To:
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Date:
09/30/2009 05:01 PM
Subject:
Re: [ptp-dev] Locating resource managers using PTP service model
Sent by:
ptp-dev-bounces@xxxxxxxxxxx



Dave,
Can I ask why you need to do that?

The resource manager configuration is supplied by the service provider
(they implement IResourceManagerConfiguration), so you can just
compare it to the object returned by resourceManager.getConfiguration ().

Greg

On Sep 30, 2009, at 12:28 PM, Dave Wootton wrote:

Greg
I have code which can find the active/default service configuration
working. I need to get access to the IResourceManager object for the
associated launch service provider. I tried accessing the array of
resource managers by calling
PTPCorePlugin.getDefault().getUniverse().getResourceManagers() but I
can't
find the right ID to use to find the correct IResourceManager.

Can you give me an outline of what I need to do to find the correct
IResourceManager object?

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

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



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



Back to the top