|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbase.Driver
simplecloud.storage.StorageAdapter
simplecloud.storage.providers.amazon.S3Adapter
public class S3Adapter
| Nested Class Summary | |
|---|---|
static class |
S3Adapter.Type
|
| Field Summary |
|---|
| Fields inherited from class base.Driver |
|---|
connection |
| Constructor Summary | |
|---|---|
S3Adapter(java.lang.String accessId,
java.lang.String accessKey,
java.lang.String host)
|
|
| 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 S3Adapter(java.lang.String accessId,
java.lang.String accessKey,
java.lang.String host)
| Method Detail |
|---|
public IItem fetchItem(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
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
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
path - is the path to the item to deleteoptions - are provider-specific options for deleting the item
public void copyItem(java.lang.String sourcePath,
java.lang.String destinationPath,
java.util.Map<java.lang.Object,java.lang.Object> options)
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 item
public void moveItem(java.lang.String sourcePath,
java.lang.String destinationPath,
java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
sourcePath - is the path to the item to movedestinationPath - is the item's new destinationoptions - are provider specific-options for moving the item
public void renameItem(java.lang.String path,
java.lang.String name,
java.util.Map<java.lang.Object,java.lang.Object> options)
IStorageAdapter
path - is the path to the item to renamename - is the new name of the itemoptions - are provider-specific options for renaming the item
public java.util.List<java.lang.String> listItems(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
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
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
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 metadata
public void deleteMetadata(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
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 | |||||||||