public class InputServiceImpl extends PersistedServiceImpl implements InputService
mongoConnection| Constructor and Description |
|---|
InputServiceImpl(MongoConnection mongoConnection,
ExtractorFactory extractorFactory,
MessageInputFactory messageInputFactory,
ClusterEventBus clusterEventBus) |
collection, collection, count, count, cursorToList, destroy, destroyAll, destroyAll, destroyAll, embed, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, totalCount, totalCount, validate, validate, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroyAll, validate, validate, validate@Inject public InputServiceImpl(MongoConnection mongoConnection, ExtractorFactory extractorFactory, MessageInputFactory messageInputFactory, ClusterEventBus clusterEventBus)
public List<Input> all()
all in interface InputServicepublic List<Input> allOfThisNode(String nodeId)
allOfThisNode in interface InputServicepublic <T extends Persisted> String save(T model) throws ValidationException
save in interface PersistedServicesave in class PersistedServiceImplValidationExceptionpublic <T extends Persisted> String saveWithoutValidation(T model)
saveWithoutValidation in interface PersistedServicesaveWithoutValidation in class PersistedServiceImplpublic <T extends Persisted> int destroy(T model)
destroy in interface PersistedServicedestroy in class PersistedServiceImplpublic 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 findForThisNode(String nodeId, String id) throws NotFoundException, IllegalArgumentException
findForThisNode in interface InputServiceNotFoundExceptionIllegalArgumentExceptionpublic 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-2016 Graylog, Inc.. All Rights Reserved.