public class StreamServiceImpl extends PersistedServiceImpl implements StreamService
mongoConnection| Constructor and Description |
|---|
StreamServiceImpl(MongoConnection mongoConnection,
StreamRuleService streamRuleService,
AlertService alertService,
OutputService outputService,
NotificationService notificationService) |
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, NotificationService notificationService)
public Stream load(org.bson.types.ObjectId id) throws NotFoundException
NotFoundExceptionpublic Stream create(Map<String,Object> fields)
create in interface StreamServicepublic Stream create(CreateRequest cr)
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 List<Stream> loadAllWithConfiguredAlertConditions()
loadAllWithConfiguredAlertConditions 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 removeOutput(Stream stream, Output output)
removeOutput in interface StreamServicepublic void removeOutputFromAllStreams(Output output)
removeOutputFromAllStreams in interface StreamServiceCopyright © 2012–2014 TORCH GmbH. All rights reserved.