adah
Uploaded by
8 SLIDES
218 VUES
80LIKES

Managing Venue Data Storage Using AccessGrid DataStoreClient

DESCRIPTION

This guide provides an overview of the Venue Data Storage capabilities utilizing the AccessGrid DataStoreClient. It explains the structure of the Venue data storage system, emphasizing the importance of a single-level list with no duplications. Developers will learn how to interface with the data store, including uploading and downloading files, querying matching files, and accessing metadata. Example scripts illustrate key operations, making it easier to integrate these tools into application development. For further hands-on practice, exercises are provided for creating a basic file browser.

1 / 8

Télécharger la présentation

Managing Venue Data Storage Using AccessGrid DataStoreClient

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript

Playing audio...

  1. Venue Data Storage Susanne Lefvert lefvert@mcs.anl.gov University of Chicago

  2. Venue Data Storage • Single level list • No duplications allowed • Double-click to open • Right-click for options • Venue data versus Personal data

  3. Venue Data Storage • The data storage resides on the file system of the server. Each venue has a directory with files in the Data folder. • Venue has a set of data descriptions • Meta information about each data object • Transfer details • Each data upload is actually two file transfers • Meta data • Actual files using GSI HTTP

  4. DataStoreClient • Tool for developers • Hides details about • SOAP communication • Data cache • Upload/Download • File listing • API • AccessGrid.DatastoreClient • AccessGrid.Descriptions.DataDescription http://www.mcs.anl.gov/fl/research/accessgrid/documentation/developer/api/

  5. Example: Script from AccessGrid.DataStoreClient import GetVenueDataStore from AccessGrid.Toolkit import CmdlineApplication # Initialize AG application app = CmdlineApplication() args = app.Initialize() # Create data store interface venueUrl = "https://localhost:8000/Venues/default" dataStoreClient = GetVenueDataStore(venueUrl) # Upload a file to venue dataStoreClient.Upload("test.doc") dataStoreClient.Upload("test.ppt")

  6. Example: Script # Get data from venue dataStoreClient.LoadData() # Get file names that matches a specific pattern files = dataStoreClient.QueryMatchingFiles("*.doc") # Get data description for a file name data = dataStoreClient.GetFileData(files[0]) # Download a file from venue dataStoreClient.Download("test.doc", "localFile.doc") # Remove file from venue dataStoreClient.RemoveFile("test.doc") dataStoreClient.RemoveFile("test.ppt")

  7. Exercises http://www.mcs.anl.gov/fl/research/accessgrid/documentation/tutorial/AGTk_2.4 Exercise 8 – Data Storage • Trying the DataStoreClient test script. • Creating a venue file browser

  8. Exercise 2: Venue File Browser

More Related