Package org.codice.ddf.system.alerts
Class SystemNotice
java.lang.Object
org.codice.ddf.system.alerts.SystemNotice
- Direct Known Subclasses:
Alert
SystemNotice is the property map class used by DDF collectors when sending system notifications
to the Decanter topic 'decanter/collect/*'. This class defines all the common keys used in system
notification events and provides convenient helpers for accessing them.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey for a type identifier.static final Stringstatic final StringKey for the Setof details of this notice static final Stringstatic final StringKey for the host address on which this notice originatedstatic final StringKey for the host name on which this notice originatedstatic final StringKey for the notice id.static final StringKey for the priority of the notice.static final StringKey for the source of this notice.static final StringKey for the date/time of this notice.static final StringKey for the title of the notice. -
Constructor Summary
ConstructorsConstructorDescriptionSystemNotice(String source, NoticePriority priority, String title, Set<String> details) SystemNotice(Map<String, Object> properties) -
Method Summary
-
Field Details
-
SYSTEM_NOTICE_BASE_TOPIC
- See Also:
-
SYSTEM_NOTICE_EVENT_TYPE
- See Also:
-
EVENT_TYPE_KEY
Key for a type identifier. Included to be consistent with other decanter events. Will always be system-notice- See Also:
-
SYSTEM_NOTICE_HOST_NAME_KEY
Key for the host name on which this notice originated- See Also:
-
SYSTEM_NOTICE_HOST_ADDRESS_KEY
Key for the host address on which this notice originated- See Also:
-
SYSTEM_NOTICE_ID_KEY
Key for the notice id. This is an auto generated unique id- See Also:
-
SYSTEM_NOTICE_TIME_KEY
Key for the date/time of this notice. This is auto populated on creation- See Also:
-
SYSTEM_NOTICE_SOURCE_KEY
Key for the source of this notice. Usually this is a class name and possibly followed by an additional discriminator (ie method name)- See Also:
-
SYSTEM_NOTICE_PRIORITY_KEY
Key for the priority of the notice. Acceptable values can be found in NoticePriority- See Also:
-
SYSTEM_NOTICE_TITLE_KEY
Key for the title of the notice. Defaults to an empty string- See Also:
-
SYSTEM_NOTICE_DETAILS_KEY
Key for the Setof details of this notice - See Also:
-
properties
-
-
Constructor Details
-
SystemNotice
public SystemNotice() -
SystemNotice
-
SystemNotice
-
-
Method Details
-
init
protected void init() -
getProperties
Gets the SystemNotice properties as a map for eventing.- Returns:
- A copy of the internal properties map.
-
getId
-
getSource
-
getHostName
-
getHostAddress
-
getPriority
-
getTitle
-
getDetails
-
getTime
-
safePut
-