Class NrtController


  • public class NrtController
    extends java.lang.Object
    Author:
    Markus Neumann, Christian Pape
    • Constructor Detail

      • NrtController

        public NrtController()
    • Method Detail

      • nrtStart

        public ModelAndView nrtStart​(ResourceId resourceId,
                                     java.lang.String report,
                                     javax.servlet.http.HttpSession httpSession)
      • nrtCollectionJobTrigger

        public void nrtCollectionJobTrigger​(java.lang.String nrtCollectionTaskId,
                                            javax.servlet.http.HttpSession httpSession)
        Will be called by the JS-Graphing-Frontend as http/GET Publishes the CollectionJob corresponding to the nrtCollectionTaskId.
        Parameters:
        nrtCollectionTaskId -
        httpSession -
      • getMeasurementSetsForDestination

        public java.lang.String getMeasurementSetsForDestination​(java.lang.String nrtCollectionTaskId)
        Will be called by the JS-Graphing-Frontend as http/GET Get Measurements from NrtBroker, transform them into Json and return them to the JS-Graphing-Frontend
        Parameters:
        nrtCollectionTaskId -
        Returns:
        Json Representation of MeasurementeSets for the given nrtCollectionTaskId
      • getRequiredExternalPropertyAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getRequiredExternalPropertyAttributes​(OnmsResource reportResource,
                                                                                                            PrefabGraph prefabGraph)
      • getRequiredStringPropertyAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getRequiredStringPropertyAttributes​(OnmsResource reportResource,
                                                                                                          PrefabGraph prefabGraph)
      • getMetricIdsByProtocol

        protected java.util.Map<java.lang.String,​java.util.List<NrtController.MetricTuple>> getMetricIdsByProtocol​(java.util.Map<java.lang.String,​java.lang.String> rrdGraphAttributesMetaData)
        Provides a Map that provides Lists of MetricIds by protocols.
        Parameters:
        rrdGraphAttributesMetaData - String-key is the RrdGraphArrtibute the String-value is the MetaDataLine
        Returns:
        a Map of Protocols as String-keys and a List of MetricTuples
      • setNodeDao

        public void setNodeDao​(NodeDao nodeDao)
      • setGraphDao

        public void setGraphDao​(GraphDao graphDao)
      • setResourceDao

        public void setResourceDao​(ResourceDao resourceDao)
      • setSnmpAgentConfigFactory

        public void setSnmpAgentConfigFactory​(SnmpAgentConfigFactory snmpAgentConfigFactory)
      • getNrtBroker

        public NrtBroker getNrtBroker()
      • setNrtBroker

        public void setNrtBroker​(NrtBroker nrtBroker)
      • setResourceStorageDao

        public void setResourceStorageDao​(ResourceStorageDao resourceStorageDao)