public class MongoDbRuleService extends Object implements RuleService
| Constructor and Description |
|---|
MongoDbRuleService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper,
ClusterEventBus clusterBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String id) |
RuleDao |
load(String id) |
Collection<RuleDao> |
loadAll() |
RuleDao |
loadByName(String name) |
Collection<RuleDao> |
loadNamed(Collection<String> ruleNames) |
RuleDao |
save(RuleDao rule) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindByName@Inject public MongoDbRuleService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, ClusterEventBus clusterBus)
public RuleDao save(RuleDao rule)
save in interface RuleServicepublic RuleDao load(String id) throws NotFoundException
load in interface RuleServiceNotFoundExceptionpublic RuleDao loadByName(String name) throws NotFoundException
loadByName in interface RuleServiceNotFoundExceptionpublic Collection<RuleDao> loadAll()
loadAll in interface RuleServicepublic void delete(String id)
delete in interface RuleServicepublic Collection<RuleDao> loadNamed(Collection<String> ruleNames)
loadNamed in interface RuleServiceCopyright © 2012–2021 Graylog, Inc.. All rights reserved.