public class MongoDBKnowledgeBaseCache extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
MongoDBKnowledgeBaseCache.UpdateThread
The thread responsible for updating the MongoDB cache.
|
Constructor and Description |
---|
MongoDBKnowledgeBaseCache(org.mongojack.JacksonMongoCollection<FailureCause> jacksonCollection)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getCategories()
Getter for the categories of all FailureCauses.
|
List<FailureCause> |
getCauses()
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 |
updateCache()
Signal that an update of the Cache should be made.
|
public MongoDBKnowledgeBaseCache(org.mongojack.JacksonMongoCollection<FailureCause> jacksonCollection)
jacksonCollection
- the JacksonDBCollection, used for accessing the database.public void start()
public void stop()
public void updateCache()
public List<FailureCause> getCauses()
Copyright © 2016–2020. All rights reserved.