Class MockEventConfDao

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

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

      • MockEventConfDao

        public MockEventConfDao()
    • Method Detail

      • setResource

        public void setResource​(org.springframework.core.io.Resource resource)
      • getResource

        public org.springframework.core.io.Resource getResource()
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • 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.
      • 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.