Package org.graylog2.streams
Class OutputServiceImpl
java.lang.Object
org.graylog2.streams.OutputServiceImpl
- All Implemented Interfaces:
OutputService
-
Constructor Summary
ConstructorsConstructorDescriptionOutputServiceImpl(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapperProvider, StreamService streamService, ClusterEventBus clusterEventBus) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()create(CreateOutputRequest request, String userId) voidloadAll()loadByIds(Collection<String> ids)
-
Constructor Details
-
OutputServiceImpl
@Inject public OutputServiceImpl(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapperProvider, StreamService streamService, ClusterEventBus clusterEventBus)
-
-
Method Details
-
load
- Specified by:
loadin interfaceOutputService- Throws:
NotFoundException
-
loadAll
- Specified by:
loadAllin interfaceOutputService
-
loadByIds
- Specified by:
loadByIdsin interfaceOutputService
-
create
- Specified by:
createin interfaceOutputService- Throws:
ValidationException
-
create
- Specified by:
createin interfaceOutputService- Throws:
ValidationException
-
destroy
- Specified by:
destroyin interfaceOutputService- Throws:
NotFoundException
-
update
- Specified by:
updatein interfaceOutputService
-
count
public long count()- Specified by:
countin interfaceOutputService- Returns:
- the total number of outputs
-
countByType
- Specified by:
countByTypein interfaceOutputService- Returns:
- the total number of outputs grouped by type
-