public class StreamRuleServiceImpl extends PersistedServiceImpl implements StreamRuleService
mongoConnection| Constructor and Description |
|---|
StreamRuleServiceImpl(MongoConnection mongoConnection,
ClusterEventBus clusterEventBus) |
| Modifier and Type | Method and Description |
|---|---|
StreamRule |
copy(String streamId,
StreamRule streamRule) |
StreamRule |
create(Map<String,Object> data) |
StreamRule |
create(String streamId,
CreateStreamRuleRequest cr) |
int |
destroy(StreamRule streamRule) |
StreamRule |
load(String id) |
List<StreamRule> |
loadForStream(Stream stream) |
List<StreamRule> |
loadForStreamId(String streamId) |
Map<String,List<StreamRule>> |
loadForStreamIds(Collection<String> streamIds) |
Set<String> |
save(Collection<StreamRule> streamRules) |
String |
save(StreamRule streamRule) |
long |
streamRuleCount(String streamId) |
Map<String,Long> |
streamRuleCountByStream() |
long |
totalStreamRuleCount() |
collection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, save, saveWithoutValidation, totalCount, totalCount, validate, validate, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, destroyAll, save, saveWithoutValidation, validate, validate, validate@Inject public StreamRuleServiceImpl(MongoConnection mongoConnection, ClusterEventBus clusterEventBus)
public StreamRule load(String id) throws NotFoundException
load in interface StreamRuleServiceNotFoundExceptionpublic List<StreamRule> loadForStream(Stream stream)
loadForStream in interface StreamRuleServicepublic StreamRule create(Map<String,Object> data)
create in interface StreamRuleServicepublic StreamRule create(@Nullable String streamId, CreateStreamRuleRequest cr)
create in interface StreamRuleServicepublic StreamRule copy(@Nullable String streamId, StreamRule streamRule)
copy in interface StreamRuleServicepublic String save(StreamRule streamRule) throws ValidationException
save in interface StreamRuleServiceValidationExceptionpublic Set<String> save(Collection<StreamRule> streamRules) throws ValidationException
save in interface StreamRuleServiceValidationExceptionpublic int destroy(StreamRule streamRule)
destroy in interface StreamRuleServicepublic List<StreamRule> loadForStreamId(String streamId)
loadForStreamId in interface StreamRuleServicepublic Map<String,List<StreamRule>> loadForStreamIds(Collection<String> streamIds)
loadForStreamIds in interface StreamRuleServicepublic long totalStreamRuleCount()
totalStreamRuleCount in interface StreamRuleServicepublic long streamRuleCount(String streamId)
streamRuleCount in interface StreamRuleServicestreamId - the stream IDpublic Map<String,Long> streamRuleCountByStream()
streamRuleCountByStream in interface StreamRuleServiceCopyright © 2012–2021 Graylog, Inc.. All rights reserved.