super(ddbClient, configuration, exchange);
}
@Override
public void execute() {
DescribeTableResult result = ddbClient.describeTable(new DescribeTableRequest()
.withTableName(determineTableName()));
Message msg = getMessageForResponse(exchange);
msg.setHeader(DdbConstants.TABLE_NAME, result.getTable().getTableName());
msg.setHeader(DdbConstants.TABLE_STATUS, result.getTable().getTableStatus());
msg.setHeader(DdbConstants.CREATION_DATE, result.getTable().getCreationDateTime());
msg.setHeader(DdbConstants.ITEM_COUNT, result.getTable().getItemCount());
msg.setHeader(DdbConstants.KEY_SCHEMA, result.getTable().getKeySchema());
msg.setHeader(DdbConstants.READ_CAPACITY,
result.getTable().getProvisionedThroughput().getReadCapacityUnits());
msg.setHeader(DdbConstants.WRITE_CAPACITY,
result.getTable().getProvisionedThroughput().getWriteCapacityUnits());
msg.setHeader(DdbConstants.TABLE_SIZE, result.getTable().getTableSizeBytes());
}