Class DefaultEventConfDao

  • All Implemented Interfaces:
    EventConfDao, org.springframework.beans.factory.InitializingBean

    public class DefaultEventConfDao
    extends Object
    implements EventConfDao, org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • DefaultEventConfDao

        public DefaultEventConfDao()
    • Method Detail

      • getProgrammaticStoreRelativeUrl

        public String getProgrammaticStoreRelativeUrl()
      • setProgrammaticStoreRelativeUrl

        public void setProgrammaticStoreRelativeUrl​(String programmaticStoreRelativeUrl)
      • reload

        public void reload()
                    throws org.springframework.dao.DataAccessException
        Description copied from interface: EventConfDao

        reload

        Specified by:
        reload in interface EventConfDao
        Throws:
        org.springframework.dao.DataAccessException - if any.
      • getAllEvents

        public List<Event> getAllEvents()
      • addEvent

        public void addEvent​(Event event)
        Description copied from interface: EventConfDao
        Adds the event to the root level event config storage (file). Does not save (you must save independently with saveCurrent)
        Specified by:
        addEvent in interface EventConfDao
        Parameters:
        event - The fully configured Event object to add.
      • addEventToProgrammaticStore

        public void addEventToProgrammaticStore​(Event event)
        Description copied from interface: EventConfDao
        Adds the given event to the programmatic event store. This store currently implemented as a file (referenced from eventconf.xml) The programmatic store is a separate storage area, so that incidental programmatic editing of events (e.g. custom UEIs for thresholds, edited through the Web-UI) does not clutter up the otherwise carefully maintained event files. This method does not save (persist) the changes
        Specified by:
        addEventToProgrammaticStore in interface EventConfDao
        Parameters:
        event - The fully configured Event object to add.
      • removeEventFromProgrammaticStore

        public boolean removeEventFromProgrammaticStore​(Event event)
        Description copied from interface: EventConfDao
        Removes the given event from the programmatic event store. This store currently implemented as a file (referenced from eventconf.xml) The programmatic store is a separate storage area, so that incidental programmatic editing of events (e.g. custom UEIs for thresholds, edited through the Web-UI) does not clutter up the otherwise carefully maintained event files. This method does not save (persist) the changes
        Specified by:
        removeEventFromProgrammaticStore in interface EventConfDao
        Parameters:
        event - The fully configured Event object to remove.
        Returns:
        a boolean.
      • setConfigResource

        public void setConfigResource​(org.springframework.core.io.Resource configResource)
                               throws IOException
        Throws:
        IOException
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws org.springframework.dao.DataAccessException
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        org.springframework.dao.DataAccessException