apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tushar Gosavi <tus...@datatorrent.com>
Subject Re: FileAccess API in Malhar
Date Fri, 04 Dec 2015 12:20:16 GMT
My preference would be to add these functions in FileAccess itself other
than creating a new interface.

- Tushar.

On Fri, Dec 4, 2015 at 8:15 AM, Chandni Singh <chandni@datatorrent.com>
wrote:

> A FileAccess API has been added to Malhar and few implementations of the
> API like TFileImpl, DTFileImpl, etc have been added as well.
>
> I am trying to use this API in ManagedState. However I need few more
> capabilities:
> 1. A method which tells whether a file exists on the disk.
> 2. A method which returns list of files in the directory.
>
> How should I approach this?
>
> 1. Modify FileAccess API and add these methods since I think this is a
> common functionality and maybe needed for other places where FileAccess is
> used
>
> 2. Add another Interface, say FileAccessAndMore ( can't think of a suitable
> name :) ) which has the above 2 methods. Make the FileAccessFSImpl (base
> class of TFileImpl & DTFileImpl)  implement  FileAccessAndMore.
> ManagedState will work with FileAccessAndMore.
>
> Please let me know your recommendations.
>
> Thanks,
> Chandni
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message