org.dasein.cloud.services.kvdb
Interface KeyValueDatabaseServices


public interface KeyValueDatabaseServices


Method Summary
 void addKeyValuePairs(String inDatabaseId, String itemId, KeyValuePair... pairs)
           
 String createDatabase(String name, String description)
           
 KeyValueDatabase getDatabase(String databaseId)
           
 Iterable<KeyValuePair> getKeyValuePairs(String inDatabaseId, String itemId, boolean consistentRead)
           
 String getProviderTermForDatabase(Locale locale)
           
 boolean isSupportsKeyValueDatabases()
          Specifies whether the region represented by the current context supports key value databases.
 Iterable<String> list()
           
 Map<String,Set<KeyValuePair>> query(String queryString, boolean consistentRead)
           
 void removeDatabase(String providerDatabaseId)
           
 void removeKeyValuePairs(String inDatabaseId, String itemId, KeyValuePair... pairs)
           
 void removeKeyValuePairs(String inDatabaseId, String itemId, String... keys)
           
 void replaceKeyValuePairs(String inDatabaseId, String itemId, KeyValuePair... pairs)
           
 

Method Detail

addKeyValuePairs

void addKeyValuePairs(String inDatabaseId,
                      String itemId,
                      KeyValuePair... pairs)
                      throws CloudException,
                             InternalException
Throws:
CloudException
InternalException

createDatabase

String createDatabase(String name,
                      String description)
                      throws CloudException,
                             InternalException
Throws:
CloudException
InternalException

getKeyValuePairs

Iterable<KeyValuePair> getKeyValuePairs(String inDatabaseId,
                                        String itemId,
                                        boolean consistentRead)
                                        throws CloudException,
                                               InternalException
Throws:
CloudException
InternalException

getDatabase

KeyValueDatabase getDatabase(String databaseId)
                             throws CloudException,
                                    InternalException
Throws:
CloudException
InternalException

getProviderTermForDatabase

String getProviderTermForDatabase(Locale locale)

isSupportsKeyValueDatabases

boolean isSupportsKeyValueDatabases()
                                    throws CloudException,
                                           InternalException
Specifies whether the region represented by the current context supports key value databases. If the context has no region, this method will answer the question in general (should be true).

Returns:
true if this region supports key/value databases
Throws:
CloudException - an error occurred talking with the cloud provider
InternalException - an error occurred inside the implementation of Dasein Cloud

list

Iterable<String> list()
                      throws CloudException,
                             InternalException
Throws:
CloudException
InternalException

query

Map<String,Set<KeyValuePair>> query(String queryString,
                                    boolean consistentRead)
                                    throws CloudException,
                                           InternalException
Throws:
CloudException
InternalException

removeKeyValuePairs

void removeKeyValuePairs(String inDatabaseId,
                         String itemId,
                         KeyValuePair... pairs)
                         throws CloudException,
                                InternalException
Throws:
CloudException
InternalException

removeKeyValuePairs

void removeKeyValuePairs(String inDatabaseId,
                         String itemId,
                         String... keys)
                         throws CloudException,
                                InternalException
Throws:
CloudException
InternalException

removeDatabase

void removeDatabase(String providerDatabaseId)
                    throws CloudException,
                           InternalException
Throws:
CloudException
InternalException

replaceKeyValuePairs

void replaceKeyValuePairs(String inDatabaseId,
                          String itemId,
                          KeyValuePair... pairs)
                          throws CloudException,
                                 InternalException
Throws:
CloudException
InternalException