Package org.graylog2.inputs.persistence
Interface InputStatusService
- All Known Implementing Classes:
MongoInputStatusService
public interface InputStatusService
Provides CRUD operations for input status records.
-
Method Summary
Modifier and TypeMethodDescriptionint
Remove the status record for a given InputGet the saved status record for an Input.save
(InputStatusRecord statusRecord) Save the status record for an Input.
-
Method Details
-
get
Get the saved status record for an Input.- Parameters:
inputId
- ID of the input whose status you want to get- Returns:
- The InputStatusRecord for the given Input ID if it exists; otherwise an empty Optional.
-
save
Save the status record for an Input.- Parameters:
statusRecord
- The Input status record to save- Returns:
- A copy of the saved object
-
delete
Remove the status record for a given Input- Parameters:
inputId
- ID of the input whose status you want to delete- Returns:
- The count of deleted objects (should be 0 or 1)
-