Class DynamoDbHandler
java.lang.Object
org.evomaster.client.java.controller.internal.db.dynamodb.DynamoDbHandler
Processes DynamoDB commands captured from the SUT and computes database heuristics for them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluates all registered commands and consumes them.voidhandle(org.evomaster.client.java.instrumentation.DynamoDbCommand command) Registers one intercepted DynamoDB command.booleanvoidreset()Clears data collected for the current action.voidsetCalculateHeuristics(boolean calculateHeuristics) Enables or disables DynamoDB heuristic calculation.voidsetDynamoDbClient(Object dynamoDbClient) Sets the SDK v2 client used to read table contents.
-
Constructor Details
-
DynamoDbHandler
public DynamoDbHandler()Creates a handler with heuristic calculation enabled.
-
-
Method Details
-
reset
public void reset()Clears data collected for the current action. -
isCalculateHeuristics
public boolean isCalculateHeuristics()- Returns:
- whether DynamoDB heuristic calculation is enabled
-
setCalculateHeuristics
public void setCalculateHeuristics(boolean calculateHeuristics) Enables or disables DynamoDB heuristic calculation.- Parameters:
calculateHeuristics- new calculation state
-
setDynamoDbClient
Sets the SDK v2 client used to read table contents.- Parameters:
dynamoDbClient- synchronous or asynchronous DynamoDB client
-
handle
public void handle(org.evomaster.client.java.instrumentation.DynamoDbCommand command) Registers one intercepted DynamoDB command.- Parameters:
command- intercepted command
-
getEvaluatedDynamoDbCommands
Evaluates all registered commands and consumes them.- Returns:
- evaluated commands for the current action
-