Package org.graylog2.streams
Interface StreamService
- All Superinterfaces:
PersistedService
- All Known Implementing Classes:
StreamServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addOutputs
(org.bson.types.ObjectId streamId, Collection<org.bson.types.ObjectId> outputIds) void
addToIndexSet
(String indexSetId, Collection<String> streamIds) long
count()
create
(CreateStreamRequest request, String userId) void
indexSetIdsByIds
(Collection<String> streamIds) loadAll()
loadAllWithIndexSet
(String indexSetId) loadByIds
(Collection<String> streamIds) void
void
removeOutput
(Stream stream, Output output) void
removeOutputFromAllStreams
(Output output) void
saveWithRulesAndOwnership
(Stream stream, Collection<StreamRule> streamRules, User user) streamTitlesForIndexSet
(String indexSetId) 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
-
streamTitlesForIndexSet
-
addToIndexSet
-