Class MongoDBKnowledgeBaseCache

java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.db.MongoDBKnowledgeBaseCache

public class MongoDBKnowledgeBaseCache extends Object
Cache for the MongoDBKnowledgeBase.
Author:
Tomas Westling <tomas.westling@sonyericsson.com>
  • 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

      public List<FailureCause> getCauses()
      Getter for the cachedFailureCauses.
      Returns:
      the causes.
    • getCategories

      public List<String> getCategories()
      Getter for the categories of all FailureCauses.
      Returns:
      the categories.