Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » [RSE] File subsystem vs file service
[RSE] File subsystem vs file service [message #515809] Sun, 21 February 2010 09:42 Go to next message
Vladimir Prus is currently offline Vladimir Prus
Messages: 6
Registered: July 2009
Junior Member
Hello,

after reading the RSE Developer Guide, I not sure I fully grasp the difference
between roles of subsystems and services, and file subsystem and service in
particular. Specifically:

1. If I wish to upload a file to remote system, should I be using
IRemoteFileSubSystem, or IFileService?

2. Why is RemoteRunLaunchDelegate.remoteFileDownload using IFileService, and
not IRemoteFileSubSystem? For the record, I have integrated remote launch
in our debugger, using IRemoteFileSubSystem, and it seem to be working fine,
but I wonder if I'm missing something hidden.

3. If there generally any reason to use services level? Or it is purely
an implementation detail so that one subsystem can use different transports
to the target? It would be very confusing if clients can use either, without
clear guidance as to when to use which.

Thanks,

--
Vladimir Prus
CodeSourcery
vladimir@codesourcery.com
(650) 331-3385 x722
Re: [RSE] File subsystem vs file service [message #521149 is a reply to message #515809] Tue, 16 March 2010 15:07 Go to previous messageGo to next message
Vladimir Prus is currently offline Vladimir Prus
Messages: 6
Registered: July 2009
Junior Member
Ping?
Re: [RSE] File subsystem vs file service [message #537830 is a reply to message #515809] Thu, 03 June 2010 18:57 Go to previous message
David McKnight is currently offline David McKnight
Messages: 244
Registered: July 2009
Senior Member
Hi Vladimir,

I'm sorry for the delay in responses. I've been quite busy lately and I
presume the same for other TM committers. I'll try to briefly answer your
questions:

1) If you want to programmatically upload a file, you probably should be
using the UniversalFileTransferUtility API. On top of the underlying
subsystem calls that this API makes, it deals with conflicts and timestamps.
Regarding services vs. subsystems, a service is a
minimal-dependency,low-layer piece of function that normally interfaces a
protocol, whereas a subsystem is a wrapper to a service that references
other RSE artifacts/dependencies and supports persistence.

2) I'm not aware of a RemoteRunLaunchDelegate class. Is this in RSE or
something else?

3) Normally, you should work at a layer above the services (i.e. the
subsystem or a utility API). The service is there to provide
protocol-specific implementations while the subsystem abstracts things to be
useful on a protocol-agnostic level.


"Vladimir Prus" <vladimir@codesourcery.com> wrote in message
news:hlqv6t$sm1$1@build.eclipse.org...
> Hello,
>
> after reading the RSE Developer Guide, I not sure I fully grasp the
> difference
> between roles of subsystems and services, and file subsystem and service
> in
> particular. Specifically:
>
> 1. If I wish to upload a file to remote system, should I be using
> IRemoteFileSubSystem, or IFileService?
>
> 2. Why is RemoteRunLaunchDelegate.remoteFileDownload using IFileService,
> and
> not IRemoteFileSubSystem? For the record, I have integrated remote launch
> in our debugger, using IRemoteFileSubSystem, and it seem to be working
> fine,
> but I wonder if I'm missing something hidden.
>
> 3. If there generally any reason to use services level? Or it is purely
> an implementation detail so that one subsystem can use different
> transports
> to the target? It would be very confusing if clients can use either,
> without
> clear guidance as to when to use which.
>
> Thanks,
>
> --
> Vladimir Prus
> CodeSourcery
> mailto:vladimir@codesourcery.com
> (650) 331-3385 x722
Previous Topic:Unable to view directory structure in FTP
Next Topic:[RSE] File subsystem vs file service
Goto Forum:
  


Current Time: Thu Oct 02 02:39:20 GMT 2014

Powered by FUDForum. Page generated in 0.02932 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software