Package org.graylog2.inputs
Interface InputService
- All Superinterfaces:
PersistedService
- All Known Implementing Classes:
InputServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtractor
(Input input, Extractor extractor) void
addStaticField
(Input input, String key, String value) all()
allOfThisNode
(String nodeId) findByIds
(Collection<String> ids) findForThisNode
(String nodeId, String id) findForThisNodeOrGlobal
(String nodeId, String id) getExtractor
(Input input, String extractorId) getExtractors
(Input input) getMessageInput
(Input io) getStaticFields
(Input input) long
long
long
localCountForNode
(String nodeId) void
removeExtractor
(Input input, String extractorId) void
removeStaticField
(Input input, String key) saveWithoutEvents
(T model) long
long
totalCountForNode
(String nodeId) long
void
updateExtractor
(Input input, Extractor extractor) Methods inherited from interface org.graylog2.plugin.database.PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
-
Method Details
-
all
-
allOfThisNode
-
create
-
create
-
saveWithoutEvents
- Throws:
ValidationException
-
update
- Throws:
ValidationException
-
find
- Throws:
NotFoundException
-
allByType
-
findByIds
-
findForThisNode
- Throws:
NotFoundException
-
findForThisNodeOrGlobal
- Throws:
NotFoundException
-
totalCount
long totalCount()- Returns:
- the total number of inputs in the cluster (including global inputs).
-
globalCount
long globalCount()- Returns:
- the number of global inputs in the cluster.
-
localCount
long localCount()- Returns:
- the number of node-specific inputs in the cluster.
-
totalCountByType
- Returns:
- the total number of inputs in the cluster grouped by type.
-
localCountForNode
- Parameters:
nodeId
- the node ID to query- Returns:
- the number of inputs on the specified node
-
totalCountForNode
- Parameters:
nodeId
- the node ID to query- Returns:
- the number of inputs on the specified node (including global inputs)
-
totalExtractorCount
long totalExtractorCount()- Returns:
- the total number of extractors in the cluster (including global inputs).
-
totalExtractorCountByType
Map<Extractor.Type,Long> totalExtractorCountByType()- Returns:
- the total number of extractors in the cluster (including global inputs) grouped by type.
-
addExtractor
- Throws:
ValidationException
-
addStaticField
- Throws:
ValidationException
-
getExtractors
-
getExtractor
- Throws:
NotFoundException
-
updateExtractor
- Throws:
ValidationException
-
removeExtractor
-
removeStaticField
-
getMessageInput
- Throws:
NoSuchInputTypeException
-
getStaticFields
-