Package org.graylog2.notifications
Class NotificationServiceImpl
java.lang.Object
org.graylog2.database.PersistedServiceImpl
org.graylog2.notifications.NotificationServiceImpl
- All Implemented Interfaces:
NotificationService
,PersistedService
-
Field Summary
Fields inherited from class org.graylog2.database.PersistedServiceImpl
mongoConnection
-
Constructor Summary
ConstructorDescriptionNotificationServiceImpl
(NodeId nodeId, MongoConnection mongoConnection, AuditEventSender auditEventSender) -
Method Summary
Modifier and TypeMethodDescriptionall()
build()
buildNow()
int
boolean
fixed
(Notification notification) boolean
fixed
(Notification.Type type) boolean
fixed
(Notification.Type type, Node node) boolean
isFirst
(Notification.Type type) boolean
publishIfFirst
(Notification notification) Methods inherited from class org.graylog2.database.PersistedServiceImpl
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graylog2.plugin.database.PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
-
Constructor Details
-
NotificationServiceImpl
@Inject public NotificationServiceImpl(NodeId nodeId, MongoConnection mongoConnection, AuditEventSender auditEventSender)
-
-
Method Details
-
build
- Specified by:
build
in interfaceNotificationService
-
buildNow
- Specified by:
buildNow
in interfaceNotificationService
-
fixed
- Specified by:
fixed
in interfaceNotificationService
-
fixed
- Specified by:
fixed
in interfaceNotificationService
-
isFirst
- Specified by:
isFirst
in interfaceNotificationService
-
all
- Specified by:
all
in interfaceNotificationService
-
publishIfFirst
- Specified by:
publishIfFirst
in interfaceNotificationService
-
fixed
- Specified by:
fixed
in interfaceNotificationService
-
destroyAllByType
- Specified by:
destroyAllByType
in interfaceNotificationService
-