Class LogMessageIndex
java.lang.Object
de.qytera.qtaf.core.log.model.index.LogMessageIndex
Index that holds all log messages.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the index.get(int id) Get an object by its ID.getByAbstractScenarioId(String abstractScenarioId) Get all log messages for a given abstract scenario ID.getByFeatureId(String featureId) Get all log messages for a given feature ID.getByScenarioId(String scenarioId) Get all log messages for a given scenario ID.getByScenarioIdAndFailed(String scenarioId) Get all log messages for a given scenario ID that have failed.getByScenarioIdAndPassed(String scenarioId) Get all log messages for a given scenario ID that have passed.getByScenarioIdAndPending(String scenarioId) Get all log messages for a given scenario ID that are pending.static LogMessageIndexFactory method.put(int id, LogMessage obj) Add a new object to the index.intsize()Get size of index (number of elements in the index).
-
Method Details
-
getInstance
Factory method.- Returns:
- singleton instance
-
get
Get an object by its ID.- Parameters:
id- object ID- Returns:
- feature log collection
-
put
Add a new object to the index.- Parameters:
id- object's IDobj- 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
Get all log messages for a given feature ID.- Parameters:
featureId- Feature ID- Returns:
- List of log messages for the given feature ID
-
getByAbstractScenarioId
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
Get all log messages for a given scenario ID.- Parameters:
scenarioId- Scenario ID- Returns:
- List of log messages for the given scenario ID
-
getByScenarioIdAndPending
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
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
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
-