public class OutputServiceImpl extends PersistedServiceImpl implements OutputService
mongoConnection
Constructor and Description |
---|
OutputServiceImpl(MongoConnection mongoConnection,
StreamService streamService,
OutputRegistry outputRegistry) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
Map<String,Long> |
countByType() |
Output |
create(CreateOutputRequest request,
String userId) |
Output |
create(Output request) |
void |
destroy(Output output) |
Output |
load(String streamOutputId) |
Set<Output> |
loadAll() |
protected Set<Output> |
loadAll(Map<String,Object> additionalQueryOpts) |
Set<Output> |
loadForStream(Stream stream) |
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, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
@Inject public OutputServiceImpl(MongoConnection mongoConnection, StreamService streamService, OutputRegistry outputRegistry)
public Output load(String streamOutputId) throws NotFoundException
load
in interface OutputService
NotFoundException
public Set<Output> loadAll()
loadAll
in interface OutputService
public Set<Output> loadForStream(Stream stream)
loadForStream
in interface OutputService
public Output create(Output request) throws ValidationException
create
in interface OutputService
ValidationException
public Output create(CreateOutputRequest request, String userId) throws ValidationException
create
in interface OutputService
ValidationException
public void destroy(Output output) throws NotFoundException
destroy
in interface OutputService
NotFoundException
public long count()
count
in interface OutputService
public Map<String,Long> countByType()
countByType
in interface OutputService
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.