Class MongoDBKnowledgeBaseCache
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.db.MongoDBKnowledgeBaseCache
Cache for the MongoDBKnowledgeBase.
- Author:
- Tomas Westling <tomas.westling@sonyericsson.com>
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
The thread responsible for updating the MongoDB cache. -
Constructor Summary
ConstructorDescriptionMongoDBKnowledgeBaseCache
(org.mongojack.JacksonMongoCollection<FailureCause> jacksonCollection) Standard constructor. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the categories of all FailureCauses.Getter for the cachedFailureCauses.void
start()
Run when the cache, including the update mechanism, should start running.void
stop()
Run when we want to shut down the cache.void
Signal that an update of the Cache should be made.
-
Constructor Details
-
MongoDBKnowledgeBaseCache
public MongoDBKnowledgeBaseCache(org.mongojack.JacksonMongoCollection<FailureCause> jacksonCollection) Standard constructor.- Parameters:
jacksonCollection
- the JacksonDBCollection, used for accessing the database.
-
-
Method Details
-
start
public void start()Run when the cache, including the update mechanism, should start running. -
stop
public void stop()Run when we want to shut down the cache. -
updateCache
public void updateCache()Signal that an update of the Cache should be made. -
getCauses
Getter for the cachedFailureCauses.- Returns:
- the causes.
-
getCategories
Getter for the categories of all FailureCauses.- Returns:
- the categories.
-