|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbase.Driver
simplecloud.storage.providers.nirvanix.NirvanixAdapter
public class NirvanixAdapter
Nested Class Summary | |
---|---|
static class |
NirvanixAdapter.Type
|
Field Summary |
---|
Fields inherited from class base.Driver |
---|
connection |
Constructor Summary | |
---|---|
NirvanixAdapter(java.lang.String appName,
java.lang.String appKey,
java.lang.String username,
java.lang.String password)
|
Method Summary | |
---|---|
void |
copyItem(java.lang.String sourcePath,
java.lang.String destinationPath,
java.util.Map<java.lang.Object,java.lang.Object> options)
Copies an item from one location to another location. |
void |
deleteItem(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Deletes an item from the storage provider. |
void |
deleteMetadata(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Deletes metadata associated with an item. |
IItem |
fetchItem(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Fetches an item from the storage provider. |
java.util.Map<java.lang.String,java.lang.String> |
fetchMetadata(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Fetches the metadata of an item. |
java.util.List<java.lang.String> |
listItems(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Lists the items at the given path. |
void |
moveItem(java.lang.String sourcePath,
java.lang.String destinationPath,
java.util.Map<java.lang.Object,java.lang.Object> options)
Moves an item from one location to another location. |
void |
renameItem(java.lang.String path,
java.lang.String name,
java.util.Map<java.lang.Object,java.lang.Object> options)
Renames an item. |
boolean |
storeItem(java.lang.String destinationPath,
IItem item,
java.util.Map<java.lang.String,java.lang.String> metadata,
java.util.Map<java.lang.Object,java.lang.Object> options)
Stores an item with the storage provider. |
void |
storeMetadata(java.lang.String destinationPath,
java.util.Map<java.lang.String,java.lang.String> metadata,
java.util.Map<java.lang.Object,java.lang.Object> options)
Stores metadata for an item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NirvanixAdapter(java.lang.String appName, java.lang.String appKey, java.lang.String username, java.lang.String password)
Method Detail |
---|
public IItem fetchItem(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
fetchItem
in interface IStorageAdapter
path
- is the path to the item to fetchoptions
- are provider-specific options for fetching the item
public boolean storeItem(java.lang.String destinationPath, IItem item, java.util.Map<java.lang.String,java.lang.String> metadata, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
storeItem
in interface IStorageAdapter
destinationPath
- is the path to store the item atitem
- is the content to store on the providermetadata
- is metadata to associate with the itemoptions
- are provider-specific options for storing the item
public void deleteItem(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
deleteItem
in interface IStorageAdapter
path
- is the path to the item to deleteoptions
- are provider-specific options for deleting the itempublic void copyItem(java.lang.String sourcePath, java.lang.String destinationPath, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
copyItem
in interface IStorageAdapter
sourcePath
- is the path to the item to copydestinationPath
- is the destination path for the item's copyoptions
- are provider-specific options for copying the itempublic void moveItem(java.lang.String sourcePath, java.lang.String destinationPath, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
moveItem
in interface IStorageAdapter
sourcePath
- is the path to the item to movedestinationPath
- is the item's new destinationoptions
- are provider specific-options for moving the itempublic void renameItem(java.lang.String path, java.lang.String name, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
renameItem
in interface IStorageAdapter
path
- is the path to the item to renamename
- is the new name of the itemoptions
- are provider-specific options for renaming the itempublic java.util.List<java.lang.String> listItems(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
listItems
in interface IStorageAdapter
path
- identifies the directory to list the contents ofoptions
- are provider-specific options for listing the contents
public java.util.Map<java.lang.String,java.lang.String> fetchMetadata(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
fetchMetadata
in interface IStorageAdapter
path
- identifies the item to fetch the metadata foroptions
- are provider-specific options for fetching the metadata
public void storeMetadata(java.lang.String destinationPath, java.util.Map<java.lang.String,java.lang.String> metadata, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
storeMetadata
in interface IStorageAdapter
destinationPath
- identifies the item to associate with the metadatametadata
- are the key/value pairs composing the item's metadataoptions
- are provider-specific options for storing the metadatapublic void deleteMetadata(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
deleteMetadata
in interface IStorageAdapter
path
- identifies the item to delete the metadata fromoptions
- are provider-specific options for deleting the metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |