Package org.graylog2.streams
Interface StreamService
- All Superinterfaces:
PersistedService
- All Known Implementing Classes:
StreamServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddOutputs(org.bson.types.ObjectId streamId, Collection<org.bson.types.ObjectId> outputIds) voidaddToIndexSet(String indexSetId, Collection<String> streamIds) longcount()create(CreateStreamRequest request, String userId) voidindexSetIdsByIds(Collection<String> streamIds) loadAll()loadAllWithIndexSet(String indexSetId) loadByIds(Collection<String> streamIds) voidvoidremoveOutput(Stream stream, Output output) voidremoveOutputFromAllStreams(Output output) voidsaveWithRulesAndOwnership(Stream stream, Collection<StreamRule> streamRules, User user) Methods inherited from interface org.graylog2.plugin.database.PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
-
Method Details
-
create
-
create
-
save
- Throws:
ValidationException
-
saveWithRulesAndOwnership
String saveWithRulesAndOwnership(Stream stream, Collection<StreamRule> streamRules, User user) throws ValidationException - Throws:
ValidationException
-
load
- Throws:
NotFoundException
-
destroy
- Throws:
NotFoundException
-
loadAll
-
loadByIds
-
indexSetIdsByIds
-
loadAllEnabled
-
count
long count()- Returns:
- the total number of streams
-
pause
- Throws:
ValidationException
-
resume
- Throws:
ValidationException
-
addOutput
-
addOutputs
-
removeOutput
-
removeOutputFromAllStreams
-
loadAllWithIndexSet
-
addToIndexSet
-