Class LogMessageIndex

java.lang.Object
de.qytera.qtaf.core.log.model.index.LogMessageIndex

public class LogMessageIndex extends Object
Index that holds all log messages.
  • Method Details

    • getInstance

      public static LogMessageIndex getInstance()
      Factory method.
      Returns:
      singleton instance
    • get

      public LogMessage get(int id)
      Get an object by its ID.
      Parameters:
      id - object ID
      Returns:
      feature log collection
    • put

      public LogMessage put(int id, LogMessage obj)
      Add a new object to the index.
      Parameters:
      id - object's ID
      obj - object itself
      Returns:
      the inserted object
    • size

      public int size()
      Get size of index (number of elements in the index).
      Returns:
      size of index
    • clear

      public void clear()
      Clear the index.
    • getByFeatureId

      public List<LogMessage> getByFeatureId(String featureId)
      Get all log messages for a given feature ID.
      Parameters:
      featureId - Feature ID
      Returns:
      List of log messages for the given feature ID
    • getByAbstractScenarioId

      public List<LogMessage> getByAbstractScenarioId(String abstractScenarioId)
      Get all log messages for a given abstract scenario ID.
      Parameters:
      abstractScenarioId - Abstract Scenario ID
      Returns:
      List of log messages for the given abstract scenario ID
    • getByScenarioId

      public List<LogMessage> getByScenarioId(String scenarioId)
      Get all log messages for a given scenario ID.
      Parameters:
      scenarioId - Scenario ID
      Returns:
      List of log messages for the given scenario ID
    • getByScenarioIdAndPending

      public List<LogMessage> getByScenarioIdAndPending(String scenarioId)
      Get all log messages for a given scenario ID that are pending.
      Parameters:
      scenarioId - Scenario ID
      Returns:
      List of log messages for the given scenario ID
    • getByScenarioIdAndPassed

      public List<LogMessage> getByScenarioIdAndPassed(String scenarioId)
      Get all log messages for a given scenario ID that have passed.
      Parameters:
      scenarioId - Scenario ID
      Returns:
      List of log messages for the given scenario ID
    • getByScenarioIdAndFailed

      public List<LogMessage> getByScenarioIdAndFailed(String scenarioId)
      Get all log messages for a given scenario ID that have failed.
      Parameters:
      scenarioId - Scenario ID
      Returns:
      List of log messages for the given scenario ID