Class MongoDbRuleService
java.lang.Object
org.graylog.plugins.pipelineprocessor.db.mongodb.MongoDbRuleService
- All Implemented Interfaces:
RuleService
A RuleService backed by a MongoDB collection.
-
Constructor Summary
ConstructorsConstructorDescriptionMongoDbRuleService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, ClusterEventBus clusterBus) -
Method Summary
Modifier and TypeMethodDescriptionvoidloadAll()loadByName(String name) loadNamed(Collection<String> ruleNames) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graylog.plugins.pipelineprocessor.db.RuleService
findByName
-
Constructor Details
-
MongoDbRuleService
@Inject public MongoDbRuleService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, ClusterEventBus clusterBus)
-
-
Method Details
-
save
- Specified by:
savein interfaceRuleService
-
load
- Specified by:
loadin interfaceRuleService- Throws:
NotFoundException
-
loadByName
- Specified by:
loadByNamein interfaceRuleService- Throws:
NotFoundException
-
loadAll
- Specified by:
loadAllin interfaceRuleService
-
delete
- Specified by:
deletein interfaceRuleService
-
loadNamed
- Specified by:
loadNamedin interfaceRuleService
-