java.lang.Object
org.odpi.openmetadata.adapters.connectors.governanceactions.notifications.MonitoredElements

public class MonitoredElements extends Object
Manage the list of monitored elements and support queries.
  • Constructor Details

    • MonitoredElements

      public MonitoredElements()
  • Method Details

    • setMonitoredElements

      public void setMonitoredElements(List<OpenMetadataRootElement> initialResources)
      Set up the monitored elements.
      Parameters:
      initialResources - list of elements for the notification type.
    • addMonitoredElement

      public void addMonitoredElement(ElementHeader monitoredElement)
      Add a new element to the map.
      Parameters:
      monitoredElement - new resource
    • removeMonitoredElement

      public void removeMonitoredElement(ElementHeader monitoredElement)
      Remove a element from the map.
      Parameters:
      monitoredElement - old resource
    • isMonitored

      public boolean isMonitored(ElementHeader potentialElement)
      Is this one of the monitored elements?
      Parameters:
      potentialElement - resource header
      Returns:
      boolean - true for monitored element