List of usage examples for com.amazonaws.services.dynamodbv2.model ConsumedCapacity getTableName
public String getTableName()
The name of the table that was affected by the operation.
From source file:com.amazon.janusgraph.diskstorage.dynamodb.DynamoDbDelegate.java
License:Open Source License
private void meterConsumedCapacity(final String apiName, final ConsumedCapacity ccu) { if (ccu != null) { getConsumedCapacityMeter(apiName, ccu.getTableName()).mark(Math.round(ccu.getCapacityUnits())); }// w w w. j a va 2 s. c om }
From source file:com.rapid7.diskstorage.dynamodb.DynamoDBDelegate.java
License:Open Source License
public final void meterConsumedCapacity(String apiName, ConsumedCapacity ccu) { if (ccu != null) { getConsumedCapacityMeter(apiName, ccu.getTableName()).mark(Math.round(ccu.getCapacityUnits())); }//from w w w . ja v a 2 s . c o m }
From source file:org.xmlsh.aws.util.AWSDDBCommand.java
License:BSD License
protected void writeConsumedCapacity(ConsumedCapacity consumedCapacity) throws XMLStreamException { if (consumedCapacity == null) return;/*from w w w . j a va 2s .c om*/ startElement("consumed-capacity"); attribute("total-units", consumedCapacity.getCapacityUnits()); startElement("table"); writeCapacity("table-name", consumedCapacity.getTableName(), consumedCapacity.getTable()); endElement(); startElement("local-secondary-indexes"); for (Entry<String, Capacity> ce : consumedCapacity.getLocalSecondaryIndexes().entrySet()) writeCapacity("index-name", ce.getKey(), ce.getValue()); endElement(); startElement("global-secondary-indexes"); for (Entry<String, Capacity> ce : consumedCapacity.getGlobalSecondaryIndexes().entrySet()) writeCapacity("index-name", ce.getKey(), ce.getValue()); endElement(); endElement(); }