public class InputServiceImpl extends PersistedServiceImpl implements InputService
mongoConnection| Constructor and Description |
|---|
InputServiceImpl(MongoConnection mongoConnection,
ExtractorFactory extractorFactory,
MessageInputFactory messageInputFactory) |
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 InputServiceImpl(MongoConnection mongoConnection, ExtractorFactory extractorFactory, MessageInputFactory messageInputFactory)
public List<Input> allOfThisNode(String nodeId)
allOfThisNode in interface InputServicepublic List<Input> allOfRadio(Node radio)
allOfRadio in interface InputServicepublic Input create(String id, Map<String,Object> fields)
create in interface InputServicepublic Input create(Map<String,Object> fields)
create in interface InputServicepublic Input find(String id) throws NotFoundException
find in interface InputServiceNotFoundExceptionpublic Input findForThisNodeOrGlobal(String nodeId, String id) throws NotFoundException
findForThisNodeOrGlobal in interface InputServiceNotFoundExceptionpublic Input findForThisRadioOrGlobal(String radioId, String id) throws NotFoundException
findForThisRadioOrGlobal in interface InputServiceNotFoundExceptionpublic Input findForThisNode(String nodeId, String id) throws NotFoundException, IllegalArgumentException
findForThisNode in interface InputServiceNotFoundExceptionIllegalArgumentExceptionpublic Input findForThisRadio(String radioId, String id) throws NotFoundException
findForThisRadio in interface InputServiceNotFoundExceptionpublic void addExtractor(Input input, Extractor extractor) throws ValidationException
addExtractor in interface InputServiceValidationExceptionpublic void addStaticField(Input input, String key, String value) throws ValidationException
addStaticField in interface InputServiceValidationExceptionpublic List<Map.Entry<String,String>> getStaticFields(Input input)
getStaticFields in interface InputServicepublic List<Extractor> getExtractors(Input input)
getExtractors in interface InputServicepublic Extractor getExtractor(Input input, String extractorId) throws NotFoundException
getExtractor in interface InputServiceNotFoundExceptionpublic void removeExtractor(Input input, String extractorId)
removeExtractor in interface InputServicepublic void removeStaticField(Input input, String key)
removeStaticField in interface InputServicepublic MessageInput getMessageInput(Input io) throws NoSuchInputTypeException
getMessageInput in interface InputServiceNoSuchInputTypeExceptionpublic long totalCount()
totalCount in interface InputServicepublic long globalCount()
globalCount in interface InputServicepublic long localCount()
localCount in interface InputServicepublic Map<String,Long> totalCountByType()
totalCountByType in interface InputServicepublic long localCountForNode(String nodeId)
localCountForNode in interface InputServicenodeId - the node ID to querypublic long totalCountForNode(String nodeId)
totalCountForNode in interface InputServicenodeId - the node ID to querypublic long totalExtractorCount()
totalExtractorCount in interface InputServicepublic Map<Extractor.Type,Long> totalExtractorCountByType()
totalExtractorCountByType in interface InputServiceCopyright © 2012-2015 Graylog, Inc.. All Rights Reserved.