Class NrtController


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

      • NrtController

        public NrtController()
    • Method Detail

      • nrtCollectionJobTrigger

        public void nrtCollectionJobTrigger​(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 String getMeasurementSetsForDestination​(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
      • getMetricIdsByProtocol

        protected Map<String,​List<NrtController.MetricTuple>> getMetricIdsByProtocol​(Map<String,​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)