You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Vince Bonfanti <vb...@gmail.com> on 2009/05/30 23:55:22 UTC
[vfs] Google App Engine plug-in (GaeVFS)
The first public release (0.1) of GaeVFS is now available:
http://gaevfs.appspot.com/
GaeVFS is a plug-in for Apache Commons VFS that implements a virtual file
system on top of the Google App Engine for Java (GAE) datastore. It provides
a writeable file system for GAE, since GAE does not allow writing to the
local file system. GaeVFS is licensed under the Apache License, Version 2.0.
GaeVFS includes a servlet (GaeVfsServlet) that allows you to:
- upload files into GaeVFS
- serve files from GaeVFS
- (optionally) perform GaeVFS directory listings
The goal of GaeVFS is to provide a portability layer that allows you to
write application code to access the file system (both reads and writes)
that runs unmodified in either the GAE or "traditional" Java servlet
environments.
Please let me know if you find this useful.
Re: AW: [vfs] Google App Engine plug-in (GaeVFS)
Posted by Vince Bonfanti <vb...@gmail.com>.
There are two reasons for this:
1. GAE does not set the "os.arch" or "os.version" system properties.
When Commons VFS initializes, it tries to do this (OS.java line 36), which
throws NullPointerExceptions:
* private* *static* *final* String *OS_ARCH* = System.*getProperty*(
"os.arch").toLowerCase(Locale.*US*);
*private* *static* *final* String *OS_VERSION* = System.*getProperty*(
"os.version").toLowerCase(Locale.*US*);
The GaeVFS class sets these system properties to avoid the
NullPointerExceptions.
2. GAE does not allow background threads, which causes RuntimeExceptions
if you try to initialize the default SoftRefFileCache. The GaeVFS class
binds in the LRUFilesCache instead.
All of this is documented within the GaeVFS source code.
On Sun, May 31, 2009 at 10:48 AM, Ralph Goers <ra...@dslextreme.com>wrote:
>
> On May 31, 2009, at 2:44 AM, Mario Ivankovits wrote:
>
>>
>>>
>> There is no need to add this to VFS's providers.xml as a vfs plugin is
>> able to provides its own vfs-providers.xml [1] which will be loaded by VFS
>> then automatically.
>>
>
> Thanks for reminding me. Then I wonder what the requirement that the
> application do
>
> FileSystemManager fsManager = GaeVFS.getManager();
>
> is about.
Re: AW: [vfs] Google App Engine plug-in (GaeVFS)
Posted by Ralph Goers <ra...@dslextreme.com>.
On May 31, 2009, at 2:44 AM, Mario Ivankovits wrote:
>>
>
> There is no need to add this to VFS's providers.xml as a vfs plugin
> is able to provides its own vfs-providers.xml [1] which will be
> loaded by VFS then automatically.
Thanks for reminding me. Then I wonder what the requirement that the
application do
FileSystemManager fsManager = GaeVFS.getManager();
is about.
AW: [vfs] Google App Engine plug-in (GaeVFS)
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
>> http://gaevfs.appspot.com/
cool stuff!
> This is kind of cool. My first thought was that it might be nice to
> include it in VFS itself, but after looking at http://code.google.com/appengine/terms.html
> I have my doubts that including this at Apache would be doable even
> as an optional component. However, I see no reason it couldn't be
> referenced on the web site and added to providers.xml to load if it is
> present. Unless, of course, someone else has a different opinion.
There is no need to add this to VFS's providers.xml as a vfs plugin is able to provides its own vfs-providers.xml [1] which will be loaded by VFS then automatically.
Ciao,
Mario
[1] http://commons.apache.org/vfs/api.html
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [vfs] Google App Engine plug-in (GaeVFS)
Posted by Mohammady Mahdy <mo...@gmail.com>.
good job man ! was working on a similar thing but used email accounts as
storage. really nice job!
On Sun, May 31, 2009 at 9:32 AM, Ralph Goers <ra...@dslextreme.com>wrote:
>
> On May 30, 2009, at 2:55 PM, Vince Bonfanti wrote:
>
> The first public release (0.1) of GaeVFS is now available:
>>
>> http://gaevfs.appspot.com/
>>
>> GaeVFS is a plug-in for Apache Commons VFS that implements a virtual file
>> system on top of the Google App Engine for Java (GAE) datastore. It
>> provides
>> a writeable file system for GAE, since GAE does not allow writing to the
>> local file system. GaeVFS is licensed under the Apache License, Version
>> 2.0.
>>
>> GaeVFS includes a servlet (GaeVfsServlet) that allows you to:
>>
>> - upload files into GaeVFS
>> - serve files from GaeVFS
>> - (optionally) perform GaeVFS directory listings
>>
>> The goal of GaeVFS is to provide a portability layer that allows you to
>> write application code to access the file system (both reads and writes)
>> that runs unmodified in either the GAE or "traditional" Java servlet
>> environments.
>>
>> Please let me know if you find this useful.
>>
>
> This is kind of cool. My first thought was that it might be nice to include
> it in VFS itself, but after looking at
> http://code.google.com/appengine/terms.html I have my doubts that
> including this at Apache would be doable even as an optional component.
> However, I see no reason it couldn't be referenced on the web site and added
> to providers.xml to load if it is present. Unless, of course, someone else
> has a different opinion.
>
> Ralph
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
Re: [vfs] Google App Engine plug-in (GaeVFS)
Posted by Vince Bonfanti <vb...@gmail.com>.
I would be very happy if you could reference it from the Commons VFS web
site as a 3rd party plug-in. (Yes, the GaeVFS jar does contain a
vfs-providers.xml configuration, so there's no need to add it to
providers.xml).
On Sun, May 31, 2009 at 2:32 AM, Ralph Goers <ra...@dslextreme.com>wrote:
>
> On May 30, 2009, at 2:55 PM, Vince Bonfanti wrote:
>
> The first public release (0.1) of GaeVFS is now available:
>>
>> http://gaevfs.appspot.com/
>>
>> GaeVFS is a plug-in for Apache Commons VFS that implements a virtual file
>> system on top of the Google App Engine for Java (GAE) datastore. It
>> provides
>> a writeable file system for GAE, since GAE does not allow writing to the
>> local file system. GaeVFS is licensed under the Apache License, Version
>> 2.0.
>>
>> GaeVFS includes a servlet (GaeVfsServlet) that allows you to:
>>
>> - upload files into GaeVFS
>> - serve files from GaeVFS
>> - (optionally) perform GaeVFS directory listings
>>
>> The goal of GaeVFS is to provide a portability layer that allows you to
>> write application code to access the file system (both reads and writes)
>> that runs unmodified in either the GAE or "traditional" Java servlet
>> environments.
>>
>> Please let me know if you find this useful.
>>
>
> This is kind of cool. My first thought was that it might be nice to include
> it in VFS itself, but after looking at
> http://code.google.com/appengine/terms.html I have my doubts that
> including this at Apache would be doable even as an optional component.
> However, I see no reason it couldn't be referenced on the web site and added
> to providers.xml to load if it is present. Unless, of course, someone else
> has a different opinion.
>
> Ralph
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
Re: [vfs] Google App Engine plug-in (GaeVFS)
Posted by Ralph Goers <ra...@dslextreme.com>.
On May 30, 2009, at 2:55 PM, Vince Bonfanti wrote:
> The first public release (0.1) of GaeVFS is now available:
>
> http://gaevfs.appspot.com/
>
> GaeVFS is a plug-in for Apache Commons VFS that implements a virtual
> file
> system on top of the Google App Engine for Java (GAE) datastore. It
> provides
> a writeable file system for GAE, since GAE does not allow writing to
> the
> local file system. GaeVFS is licensed under the Apache License,
> Version 2.0.
>
> GaeVFS includes a servlet (GaeVfsServlet) that allows you to:
>
> - upload files into GaeVFS
> - serve files from GaeVFS
> - (optionally) perform GaeVFS directory listings
>
> The goal of GaeVFS is to provide a portability layer that allows you
> to
> write application code to access the file system (both reads and
> writes)
> that runs unmodified in either the GAE or "traditional" Java servlet
> environments.
>
> Please let me know if you find this useful.
This is kind of cool. My first thought was that it might be nice to
include it in VFS itself, but after looking at http://code.google.com/appengine/terms.html
I have my doubts that including this at Apache would be doable even
as an optional component. However, I see no reason it couldn't be
referenced on the web site and added to providers.xml to load if it is
present. Unless, of course, someone else has a different opinion.
Ralph
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [vfs] Google App Engine plug-in (GaeVFS)
Posted by dileep mandapam <di...@gmail.com>.
Great work man.!!!
On Sun, May 31, 2009 at 3:25 AM, Vince Bonfanti <vb...@gmail.com> wrote:
> The first public release (0.1) of GaeVFS is now available:
>
> http://gaevfs.appspot.com/
>
> GaeVFS is a plug-in for Apache Commons VFS that implements a virtual file
> system on top of the Google App Engine for Java (GAE) datastore. It
> provides
> a writeable file system for GAE, since GAE does not allow writing to the
> local file system. GaeVFS is licensed under the Apache License, Version
> 2.0.
>
> GaeVFS includes a servlet (GaeVfsServlet) that allows you to:
>
> - upload files into GaeVFS
> - serve files from GaeVFS
> - (optionally) perform GaeVFS directory listings
>
> The goal of GaeVFS is to provide a portability layer that allows you to
> write application code to access the file system (both reads and writes)
> that runs unmodified in either the GAE or "traditional" Java servlet
> environments.
>
> Please let me know if you find this useful.
>
--
by
DILEEP KUMAR.MANDAPAM