Class MongoDBRuleFragmentService
java.lang.Object
org.graylog.plugins.pipelineprocessor.rulebuilder.db.MongoDBRuleFragmentService
- All Implemented Interfaces:
RuleFragmentService
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMongoDBRuleFragmentService
(MongoJackObjectMapperProvider objectMapperProvider, MongoConnection mongoConnection) MongoDBRuleFragmentService
(org.mongojack.JacksonDBCollection<RuleFragment, org.bson.types.ObjectId> dbCollection) -
Method Summary
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.rulebuilder.db.RuleFragmentService
upsert
-
Field Details
-
COLLECTION_NAME
- See Also:
-
-
Constructor Details
-
MongoDBRuleFragmentService
@Inject public MongoDBRuleFragmentService(MongoJackObjectMapperProvider objectMapperProvider, MongoConnection mongoConnection) -
MongoDBRuleFragmentService
public MongoDBRuleFragmentService(org.mongojack.JacksonDBCollection<RuleFragment, org.bson.types.ObjectId> dbCollection)
-
-
Method Details
-
save
- Specified by:
save
in interfaceRuleFragmentService
-
delete
- Specified by:
delete
in interfaceRuleFragmentService
-
deleteAll
public void deleteAll()- Specified by:
deleteAll
in interfaceRuleFragmentService
-
count
- Specified by:
count
in interfaceRuleFragmentService
-
get
- Specified by:
get
in interfaceRuleFragmentService
-
all
- Specified by:
all
in interfaceRuleFragmentService
-