java.lang.Object
org.evomaster.client.java.controller.internal.db.dynamodb.DynamoDbHandler

public class DynamoDbHandler extends Object
Processes DynamoDB commands captured from the SUT and computes database heuristics for them.
  • 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

      public void setDynamoDbClient(Object dynamoDbClient)
      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

      public List<DynamoDbCommandWithDistance> getEvaluatedDynamoDbCommands()
      Evaluates all registered commands and consumes them.
      Returns:
      evaluated commands for the current action