public class StreamServiceImpl extends PersistedServiceImpl implements StreamService
mongoConnection| Constructor and Description |
|---|
StreamServiceImpl(MongoConnection mongoConnection,
StreamRuleService streamRuleService,
AlertService alertService,
OutputService outputService,
IndexSetService indexSetService,
MongoIndexSet.Factory indexSetFactory,
NotificationService notificationService,
EntityOwnershipService entityOwnershipService,
ClusterEventBus clusterEventBus,
AlarmCallbackConfigurationService alarmCallbackConfigurationService) |
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 StreamServiceImpl(MongoConnection mongoConnection, StreamRuleService streamRuleService, AlertService alertService, OutputService outputService, IndexSetService indexSetService, MongoIndexSet.Factory indexSetFactory, NotificationService notificationService, EntityOwnershipService entityOwnershipService, ClusterEventBus clusterEventBus, AlarmCallbackConfigurationService alarmCallbackConfigurationService)
public Stream load(org.bson.types.ObjectId id) throws NotFoundException
NotFoundExceptionpublic Stream create(Map<String,Object> fields)
create in interface StreamServicepublic Stream create(CreateStreamRequest cr, String userId)
create in interface StreamServicepublic Stream load(String id) throws NotFoundException
load in interface StreamServiceNotFoundExceptionpublic List<Stream> loadAllEnabled()
loadAllEnabled in interface StreamServicepublic List<Stream> loadAll()
loadAll in interface StreamServicepublic Set<Stream> loadByIds(Collection<String> streamIds)
loadByIds in interface StreamServicepublic Set<String> indexSetIdsByIds(Collection<String> streamIds)
indexSetIdsByIds in interface StreamServicepublic List<Stream> loadAllWithConfiguredAlertConditions()
loadAllWithConfiguredAlertConditions in interface StreamServicepublic long count()
count in interface StreamServicepublic void destroy(Stream stream) throws NotFoundException
destroy in interface StreamServiceNotFoundExceptionpublic void update(Stream stream, String title, String description) throws ValidationException
ValidationExceptionpublic void pause(Stream stream) throws ValidationException
pause in interface StreamServiceValidationExceptionpublic void resume(Stream stream) throws ValidationException
resume in interface StreamServiceValidationExceptionpublic List<StreamRule> getStreamRules(Stream stream) throws NotFoundException
getStreamRules in interface StreamServiceNotFoundExceptionpublic List<AlertCondition> getAlertConditions(Stream stream)
getAlertConditions in interface StreamServicepublic AlertCondition getAlertCondition(Stream stream, String conditionId) throws NotFoundException
getAlertCondition in interface StreamServiceNotFoundExceptionpublic void addAlertCondition(Stream stream, AlertCondition condition) throws ValidationException
addAlertCondition in interface StreamServiceValidationExceptionpublic void updateAlertCondition(Stream stream, AlertCondition condition) throws ValidationException
updateAlertCondition in interface StreamServiceValidationExceptionpublic void removeAlertCondition(Stream stream, String conditionId)
removeAlertCondition in interface StreamServicepublic void addAlertReceiver(Stream stream, String type, String name)
addAlertReceiver in interface StreamServicepublic void removeAlertReceiver(Stream stream, String type, String name)
removeAlertReceiver in interface StreamServicepublic void addOutput(Stream stream, Output output)
addOutput in interface StreamServicepublic void addOutputs(org.bson.types.ObjectId streamId,
Collection<org.bson.types.ObjectId> outputIds)
addOutputs in interface StreamServicepublic void removeOutput(Stream stream, Output output)
removeOutput in interface StreamServicepublic void removeOutputFromAllStreams(Output output)
removeOutputFromAllStreams in interface StreamServicepublic List<Stream> loadAllWithIndexSet(String indexSetId)
loadAllWithIndexSet in interface StreamServicepublic String save(Stream stream) throws ValidationException
save in interface StreamServiceValidationExceptionpublic String saveWithRulesAndOwnership(Stream stream, Collection<StreamRule> streamRules, User user) throws ValidationException
saveWithRulesAndOwnership in interface StreamServiceValidationExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.