public interface NotificationFeedManager
NotificationFeedId objects.| Modifier and Type | Method and Description |
|---|---|
boolean |
createFeed(co.cask.cdap.proto.notification.NotificationFeedInfo feed)
Create a notification feed.
|
void |
deleteFeed(co.cask.cdap.proto.id.NotificationFeedId feed)
Deletes the
feed from the manager store. |
co.cask.cdap.proto.notification.NotificationFeedInfo |
getFeed(co.cask.cdap.proto.id.NotificationFeedId feed)
Get a
NotificationFeedId based on the feed.getId() method of the feed argument. |
List<co.cask.cdap.proto.notification.NotificationFeedInfo> |
listFeeds(co.cask.cdap.proto.id.NamespaceId namespace)
List all the
NotificationFeedInfos present in the manager store for a namespace. |
boolean createFeed(co.cask.cdap.proto.notification.NotificationFeedInfo feed)
throws NotificationFeedException
feed - the feed to createtrue if the feed was created successfully; false if the feed already existsNotificationFeedException - if the feed has an incorrect structure;
for example, if it is missing a name, a namespace or a categoryvoid deleteFeed(co.cask.cdap.proto.id.NotificationFeedId feed)
throws NotificationFeedNotFoundException,
NotificationFeedException
feed from the manager store.feed - the NotificationFeedId to deleteNotificationFeedNotFoundException - if the feed does not existNotificationFeedException - in case of unforeseen errorco.cask.cdap.proto.notification.NotificationFeedInfo getFeed(co.cask.cdap.proto.id.NotificationFeedId feed)
throws NotificationFeedNotFoundException,
NotificationFeedException
NotificationFeedId based on the feed.getId() method of the feed argument.feed - feed containing the feed Id of the feed to retrieveNotificationFeedId of the feed which ID is the same as feedNotificationFeedNotFoundException - if the feed does not existNotificationFeedException - in case of unforeseen errorList<co.cask.cdap.proto.notification.NotificationFeedInfo> listFeeds(co.cask.cdap.proto.id.NamespaceId namespace) throws NotificationFeedException
NotificationFeedInfos present in the manager store for a namespace.namespace - Id of the namespace to list feeds forNotificationFeedInfos present in the manager storeNotificationFeedException - in case of unforeseen errorCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.