Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-tm-dev] How do I get an IRemoteProcessSubSystem?

Hi Lothar, Dave,

even if the workaround that you found does work, I think it's 
conceptually not quite the right thing to do.

In order for the "Shell Processes" subsystem to work, it needs
to have certain preconditions on the remote side: A /proc file
system with certain semantics, as found on a Linux system. That's
why it's registered against the "linux" system type only by default.

The "SSH Only" system type, on the other hand, doesn't make any 
such preconditions. It's meant to work against Solaris, HP-UX,
even Windows or Mainframe servers... as long as the standard 
SSH protocol is supported by the remote.

What you do with your workaround, is that you "subclass" the
shell processes subsystem and claim that your variant now
works against any kind of "SSH Only" system. Which, I'd think
is not true for Windows at least :-)

The concept and idea of a system type is that it describes the
kind of remote system that you happen to have, as well as the
capabilities that it exposes. So, Lothar -- if you happen to
*know* that you have a remote Linux system, you should choose
the Linux system type. If you want to disable dstore, you 
should define your own systemtype "Linux - SSH" or 
"Tradescape Linux" to indicate that you know that your Linux 
system doesn't provide a dstore server.

The systemTypes extension point allows you to specify the kinds
of subsystem that you want to "pull in" for your specific connection:
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.doc.isv/refere
nce/extension-points/org_eclipse_rse_core_systemTypes.html

For your product, you can then go a step further and disable
any standard system types that users shouldn't see by default:
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.doc.isv/refere
nce/misc/runtime-options.html

I know that the current facilities for associating system types
with subsystems are rather static. I'd like that to be a lot
more dynamic, e.g. based on properties of the systemType such
as "hasLinuxProcFilesystem" -- then *any* kind of systemType 
could pick up shell processes more easily. For some reference, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150498
https://bugs.eclipse.org/bugs/show_bug.cgi?id=176490

Another idea was that systemTypes could "inherit" properties
from other parent system types, e.g. your "Tradescape Linux"
systemType could inherit all settings from "SSH Only" plus
add the Linux Shell Processes Capability. That approach
was later abandoned in favor of the "Properties" idea.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=170918


Does that clarify matters?

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
 
 

> -----Original Message-----
> From: dsdp-tm-dev-bounces@xxxxxxxxxxx 
> [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of Lothar Werzinger
> Sent: Mittwoch, 11. Februar 2009 22:15
> To: Target Management developer discussions
> Subject: Re: [dsdp-tm-dev] How do I get an IRemoteProcessSubSystem?
> 
> On Wednesday 11 February 2009, David McKnight wrote:
> > Hi Lothar,
> >
> > You could add it to your own plugin like this:
> >
> >   <extension
> >          point="org.eclipse.rse.core.subsystemConfigurations">
> >       <configuration
> >             systemTypeIds="org.eclipse.rse.systemtype.ssh"
> >             name="Processes"
> >             description="Description of processes subsystem"
> >             iconlive="icons/full/obj16/processsubsystemlive_obj.gif"
> >             icon="icons/full/obj16/processsubsystem_obj.gif"
> >             category="processes"
> >             class=
> > 
> "org.eclipse.rse.subsystems.processes.shell.linux.ShellProcess
> SubSystemConf
> >iguration" vendor="my provider"
> >             priority="200"
> >             id="processes.shell.linux2"/>
> >    </extension>
> >
> > The plugin would need appropriate icons and properties.  
> Also you would
> > need to make sure that the manifest file includes the 
> following dependency:
> >
> >  org.eclipse.rse.subsystems.processes.shell.linux
> >
> > When you create an SSH Only connection with this change, the process
> > subsystem should be available.
> 
> Thanks, that works.
> 
> Lothar
> -- 
> Lothar Werzinger Dipl.-Ing. Univ.
> Director of Technology
> Tradescape Inc. - Enabling Efficient Digital Marketplaces
> 1754 Technology Drive, Suite 128
> San Jose, CA 95110
> web: http://www.tradescape.biz
> _______________________________________________
> dsdp-tm-dev mailing list
> dsdp-tm-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> 


Back to the top