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
ConstructorDescriptionMongoDbRuleService
(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, ClusterEventBus clusterBus) -
Method Summary
Modifier and TypeMethodDescriptionvoid
loadAll()
loadByName
(String name) loadNamed
(Collection<String> ruleNames) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
save
in interfaceRuleService
-
load
- Specified by:
load
in interfaceRuleService
- Throws:
NotFoundException
-
loadByName
- Specified by:
loadByName
in interfaceRuleService
- Throws:
NotFoundException
-
loadAll
- Specified by:
loadAll
in interfaceRuleService
-
delete
- Specified by:
delete
in interfaceRuleService
-
loadNamed
- Specified by:
loadNamed
in interfaceRuleService
-