public interface StreamService extends PersistedService
| Modifier and Type | Method and Description |
|---|---|
void |
addAlertCondition(Stream stream,
AlertCondition condition) |
void |
addAlertReceiver(Stream stream,
String type,
String name) |
void |
addOutput(Stream stream,
Output output) |
Stream |
create(CreateRequest request) |
Stream |
create(Map<String,Object> fields) |
void |
destroy(Stream stream) |
AlertCondition |
getAlertCondition(Stream stream,
String conditionId) |
List<AlertCondition> |
getAlertConditions(Stream stream) |
List<StreamRule> |
getStreamRules(Stream stream) |
Stream |
load(String id) |
List<Stream> |
loadAll() |
List<Stream> |
loadAllEnabled() |
List<Stream> |
loadAllWithConfiguredAlertConditions() |
void |
pause(Stream stream) |
void |
removeAlertCondition(Stream stream,
String conditionId) |
void |
removeAlertReceiver(Stream stream,
String type,
String name) |
void |
removeOutput(Stream stream,
Output output) |
void |
removeOutputFromAllStreams(Output output) |
void |
resume(Stream stream) |
void |
updateAlertCondition(Stream stream,
AlertCondition condition) |
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validateStream create(CreateRequest request)
Stream load(String id) throws NotFoundException
NotFoundExceptionvoid destroy(Stream stream) throws NotFoundException
NotFoundExceptionvoid pause(Stream stream) throws ValidationException
ValidationExceptionvoid resume(Stream stream) throws ValidationException
ValidationExceptionList<StreamRule> getStreamRules(Stream stream) throws NotFoundException
NotFoundExceptionList<AlertCondition> getAlertConditions(Stream stream)
AlertCondition getAlertCondition(Stream stream, String conditionId) throws NotFoundException
NotFoundExceptionvoid addAlertCondition(Stream stream, AlertCondition condition) throws ValidationException
ValidationExceptionvoid updateAlertCondition(Stream stream, AlertCondition condition) throws ValidationException
ValidationExceptionvoid removeOutputFromAllStreams(Output output)
Copyright © 2012–2014 TORCH GmbH. All rights reserved.