Hi Pedro, Yes, these steps look like what you have to do to add a new storage/BitStore implementation. And yes, add the Google SDK to dspace-api/pom.xml instead of dspace/pom.xml.
One implementation pointer I'd like to suggest is that it would be nice to support the use case of simple/small objects ~5MB, and also multipart upload/download so that it can work with large 5GB - 5TB sized objects. https://cloud.google.com/storage/docs/json_api/v1/how-tos/multipart-upload Also, be mindful as to what you want to use to track the checksums. https://cloud.google.com/storage/docs/hashes-etags Lastly, ensure that you close any resources opened when putting or getting objects to the store. You can run out of resources if you open an HTTP connection each time, but never close it. Good luck. ________________ Peter Dietz Longsight www.longsight.com [email protected] p: 740-599-5005 x809 On Mon, Dec 19, 2016 at 7:52 AM, Pedro Amorim <[email protected]> wrote: > Just noticed, the GCS Java client in 1) should be added to > [dspace-source]/dspace-api/pom.xml instead of [dspace-source]/dspace/pom.xml > as originally mentioned. > > segunda-feira, 19 de Dezembro de 2016 às 11:46:10 UTC-1, Pedro Amorim > escreveu: >> >> Hello everyone, >> >> I'd like to store DSpace bitstreams in a GCS bucket, much like the way >> the S3BitStore is implemented. >> Before I start tinkering and testing, I'd much appreciate some input on >> the matter from more experienced Java programmers, namely DSpace >> programmers. >> >> So, from what I've gathered so far, I need to: >> >> 1) Add Google Cloud Storage Java libraries in >> [dspace-source]/dspace/pom.xml and perform a rebuild. This will be needed >> for step 2). These libraries are as provided here: >> https://cloud.google.com/storage/docs/reference/libraries# >> client-libraries-install-java >> >> 2) Create and implement a new GCSBitStoreService.java based on the one >> created for S3: >> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/ >> main/java/org/dspace/storage/bitstore/S3BitStoreService.java >> >> 3) Add new BitStore in bitstore.xml: >> https://github.com/DSpace/DSpace/blob/master/dspace/config/ >> spring/api/bitstore.xml >> >> 4) Activate the new BitStore in bitstore.xml as documented here: >> https://wiki.duraspace.org/display/DSDOC6x/Storage+Layer#Sto >> rageLayer-ConfiguringAmazonS3Storage >> >> And that's about it? >> >> Thanks as always, >> >> Pedro Amorim >> > -- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
