Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Today in Eagle there is no Notification Plugin Framework where users can implement the Notification Plugin Interface and upload their own library. This Plugin allows user to implement their own and also provides below default implementation 

  •  Sending Email Alert
  •  Persisting Message to Kafka 
  •  Writing Entities to Eagle Service

...

Code Block
languagejava
themeEclipseConfluence
titleNotification Interface
linenumberstrue
collapsetrue
/**
* Notification Plugin Interface 
*/
public interface NotificationPlugin {
    /**
     * Post a notification for the given alert entity
     * @param alertEntity
     */
    public void onAlert( AlertEntity alertEntity ) throws NotificationException;
    /**
    *  Returns Status of Notification 
    */
	public NotificationStatus  getStatus();
}

 

At the time of Eagle Topology starts ,  Code should scan and register the Notification Type ( Custom Notification / Email / Kafka Message  etc.. )