|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xerox.amazonws.common.AWSConnection
com.xerox.amazonws.common.AWSQueryConnection
com.xerox.amazonws.sdb.Domain
public class Domain
This class provides an interface with the Amazon SDB service. It provides methods for listing and deleting items.
| Nested Class Summary | |
|---|---|
protected class |
Domain.RejectionHandler
|
| Field Summary |
|---|
| Fields inherited from class com.xerox.amazonws.common.AWSConnection |
|---|
headers |
| Constructor Summary | |
|---|---|
protected |
Domain(String domainName,
String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server,
int port)
|
| Method Summary | ||
|---|---|---|
SDBResult |
batchPutAttributes(Map<String,List<ItemAttribute>> items)
Batch inserts multiple items w/ attributes |
|
void |
deleteItem(String identifier)
Deletes an item. |
|
void |
deleteItem(String identifier,
List<Condition> conditions)
Deletes an item, with conditions |
|
Item |
getItem(String identifier)
Method for getting an Item object without getting a list of them. |
|
int |
getMaxThreads()
Gets the max number of threads to use for the threaded operations. |
|
DomainMetadataResult |
getMetadata()
Returns information about the domain. |
|
String |
getName()
Gets the name of the domain represented by this object. |
|
ThreadPoolExecutor |
getThreadPoolExecutor()
|
|
protected
|
makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
|
|
QueryWithAttributesResult |
selectItems(String selectExpression,
String nextToken)
This method supports selecting items/attributers based on the select syntax |
|
QueryWithAttributesResult |
selectItems(String selectExpression,
String nextToken,
boolean consistent)
This method supports selecting items/attributers based on the select syntax |
|
void |
setMaxThreads(int threads)
Sets the max number of threads to use for the threaded operations. |
|
void |
setThreadPoolExecutor(ThreadPoolExecutor executor)
|
|
| Methods inherited from class com.xerox.amazonws.common.AWSQueryConnection |
|---|
close, close, getConnectionManagerTimeout, getConnectionTimeout, getHeaders, getHttpClient, getMaxConnections, getMaxRetries, getServerTimeZone, getSoTimeout, getString, httpDate, makeRequest, setConnectionManagerTimeout, setConnectionTimeout, setHttpClient, setMaxConnections, setMaxRetries, setProxyValues, setProxyValues, setProxyValues, setServerTimeZone, setSoTimeout, useSystemProxy |
| Methods inherited from class com.xerox.amazonws.common.AWSConnection |
|---|
encode, encode, getAlgorithm, getAwsAccessKeyId, getPort, getResourcePrefix, getSecretAccessKey, getServer, getSignatureVersion, getUrl, isSecure, makeURL, setResourcePrefix, setServer, setSignatureVersion, urlencode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Domain(String domainName,
String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server,
int port)
throws SDBException
SDBException| Method Detail |
|---|
public String getName()
public int getMaxThreads()
public void setMaxThreads(int threads)
threads - the new max to set
public Item getItem(String identifier)
throws SDBException
identifier - id of the item
SDBException - wraps checked exceptions
public void deleteItem(String identifier)
throws SDBException
identifier - the name of the item to be deleted
SDBException - wraps checked exceptions
public void deleteItem(String identifier,
List<Condition> conditions)
throws SDBException
identifier - the name of the item to be deleted
SDBException - wraps checked exceptions
public DomainMetadataResult getMetadata()
throws SDBException
SDBException - wraps checked exceptions
public QueryWithAttributesResult selectItems(String selectExpression,
String nextToken)
throws SDBException
selectExpression - the select querynextToken - the next token, for fetching more results from a previous query
SDBException - wraps checked exceptions
public QueryWithAttributesResult selectItems(String selectExpression,
String nextToken,
boolean consistent)
throws SDBException
selectExpression - the select querynextToken - the next token, for fetching more results from a previous queryconsistent - if true, consistency is assured
SDBException - wraps checked exceptions
public SDBResult batchPutAttributes(Map<String,List<ItemAttribute>> items)
throws SDBException
attributes - list of attributes to add
SDBException - wraps checked exceptionspublic ThreadPoolExecutor getThreadPoolExecutor()
public void setThreadPoolExecutor(ThreadPoolExecutor executor)
protected <T> T makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
throws SDBException
SDBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||