Package com.amazonaws.services.simpledb
Class SimpleDBResponseMetadata
- java.lang.Object
-
- com.amazonaws.ResponseMetadata
-
- com.amazonaws.services.simpledb.SimpleDBResponseMetadata
-
public class SimpleDBResponseMetadata extends ResponseMetadata
Extension ofResponseMetadata
with Amazon SimpleDB specific data. In addition to the standard AWS request ID contained in all services' response metadata, Amazon SimpleDB also includes information on how much compute capacity, or box usage, was used to process your request.SimpleDB box usage is useful when looking at how different queries perform on your data. You can use that information to tune your queries, and reduce your monthly SimpleDB usage charges.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BOX_USAGE
-
Fields inherited from class com.amazonaws.ResponseMetadata
AWS_REQUEST_ID, metadata
-
-
Constructor Summary
Constructors Constructor Description SimpleDBResponseMetadata(ResponseMetadata originalResponseMetadata)
Creates a new SimpleDBResponseMetadata object from an existing ResponseMetadata object.SimpleDBResponseMetadata(Map<String,String> metadata)
Creates a new SimpleDBResponseMetadata object from a specified map of metadata information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getBoxUsage()
Returns the SimpleDB box usage reported in a response's metadata.-
Methods inherited from class com.amazonaws.ResponseMetadata
getRequestId, toString
-
-
-
-
Field Detail
-
BOX_USAGE
public static final String BOX_USAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SimpleDBResponseMetadata
public SimpleDBResponseMetadata(Map<String,String> metadata)
Creates a new SimpleDBResponseMetadata object from a specified map of metadata information.- Parameters:
metadata
- The raw metadata for the new SimpleDBResponseMetadata object.
-
SimpleDBResponseMetadata
public SimpleDBResponseMetadata(ResponseMetadata originalResponseMetadata)
Creates a new SimpleDBResponseMetadata object from an existing ResponseMetadata object.- Parameters:
originalResponseMetadata
- The ResponseMetadata object from which to create the new object.
-
-
Method Detail
-
getBoxUsage
public float getBoxUsage()
Returns the SimpleDB box usage reported in a response's metadata. SimpleDB box usage indicates how much compute capacity was used to process your request.Box usage is useful when looking at how different queries perform on your data. You can use that information to tune your queries, and reduce your monthly SimpleDB usage charges.
- Returns:
- The SimpleDB box usage reported for the associated request.
-
-