Storage Manager

From Gcube Wiki
Revision as of 14:02, 3 April 2012 by Roberto.cirillo (Talk | contribs) (Created page with ' == Role == == Design == == Operations == The StorageManger library implements the following methods: ;put(boolean replace): put a local file in a remote directory :Exam…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
== Role ==



Design

Operations

The StorageManger library implements the following methods:

put(boolean replace)
put a local file in a remote directory
Example: put(true).LFile(“localPath”).RFile(“remotePath”)
get()
downloads a file from a remote path to a local directory
Example: get().LFile(“localPath”).RFile(“remotePath”);
remove()
removes a remote file
Example: remove().RFile(“remotePath”);
removeDir()
removes a remote directory
Example: removeDir().LFile(“remoteDirPath”);
showDir()
shows the content of a directory
Example: showDir.RFile(“remoteDirPAth”);
lock()
locks a remote file to prevent multiple access
Example: lock().RFile(“remotePath”);
unlock(String lockKey)
unlocks a remote file
Example: unlock(“key”).RFile(“remotePath”);


Sample Usage