Package org.opennms.nrtg.web.internal
Class NrtController
- java.lang.Object
-
- org.opennms.nrtg.web.internal.NrtController
-
public class NrtController extends java.lang.Object- Author:
- Markus Neumann, Christian Pape
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classNrtController.MetricTuple
-
Constructor Summary
Constructors Constructor Description NrtController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMeasurementSetsForDestination(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-Frontendprotected 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.NrtBrokergetNrtBroker()java.util.Map<java.lang.String,java.lang.String>getRequiredExternalPropertyAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)java.util.Set<RrdGraphAttribute>getRequiredRrdGraphAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)java.util.Map<java.lang.String,java.lang.String>getRequiredStringPropertyAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)ResourceStorageDaogetResourceStorageDao()voidnrtCollectionJobTrigger(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.ModelAndViewnrtStart(ResourceId resourceId, java.lang.String report, javax.servlet.http.HttpSession httpSession)voidsetGraphDao(GraphDao graphDao)voidsetNodeDao(NodeDao nodeDao)voidsetNrtBroker(NrtBroker nrtBroker)voidsetResourceDao(ResourceDao resourceDao)voidsetResourceStorageDao(ResourceStorageDao resourceStorageDao)voidsetSnmpAgentConfigFactory(SnmpAgentConfigFactory snmpAgentConfigFactory)
-
-
-
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
-
getRequiredRrdGraphAttributes
public java.util.Set<RrdGraphAttribute> getRequiredRrdGraphAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)
-
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)
-
getResourceStorageDao
public ResourceStorageDao getResourceStorageDao()
-
setResourceStorageDao
public void setResourceStorageDao(ResourceStorageDao resourceStorageDao)
-
-