[RSE] File subsystem vs file service [message #583064] |
Sun, 21 February 2010 09:42 |
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
mailto:vladimir@codesourcery.com
(650) 331-3385 x722
|
|
|
|
Re: [RSE] File subsystem vs file service [message #583327 is a reply to message #583064] |
Thu, 03 June 2010 18:57 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.04149 seconds