Class DefaultRtcService

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

    public class DefaultRtcService
    extends Object
    implements RtcService, org.springframework.beans.factory.InitializingBean

    DefaultRtcService class.

    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    DJ Gregor
    • Constructor Detail

      • DefaultRtcService

        public DefaultRtcService()
    • Method Detail

      • createOutageCriteria

        public OnmsCriteria createOutageCriteria()

        Create a OnmsCriteria that will select OnmsOutage objects.

        CAUTION: This criteria must contain a JOIN alias to the node table called 'node' so that the {@link org.opennms.dashboard.server.CriteriaAddingVisitor.addCriteriaForCategories(OnmsCriteria, String...)} function can add a category-based restriction on matching node IDs to the criteria.

        Specified by:
        createOutageCriteria in interface RtcService
        Returns:
        a OnmsCriteria object.
      • createServiceCriteria

        public OnmsCriteria createServiceCriteria()

        Create a OnmsCriteria that will select OnmsMonitoredService objects.

        CAUTION: This criteria must contain a JOIN alias to the node table called 'node' so that the {@link org.opennms.dashboard.server.CriteriaAddingVisitor.addCriteriaForCategories(OnmsCriteria, String...)} function can add a category-based restriction on matching node IDs to the criteria.

        Specified by:
        createServiceCriteria in interface RtcService
        Returns:
        a OnmsCriteria object.
      • afterPropertiesSet

        public void afterPropertiesSet()

        afterPropertiesSet

        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • setMonitoredServiceDao

        public void setMonitoredServiceDao​(MonitoredServiceDao monitoredServiceDao)

        setMonitoredServiceDao

        Parameters:
        monitoredServiceDao - a MonitoredServiceDao object.
      • getOutageDao

        public OutageDao getOutageDao()

        getOutageDao

        Returns:
        a OutageDao object.
      • setOutageDao

        public void setOutageDao​(OutageDao outageDao)

        setOutageDao

        Parameters:
        outageDao - a OutageDao object.