Package org.opennms.nrtg.web.internal
Class NrtController
- java.lang.Object
-
- org.opennms.nrtg.web.internal.NrtController
-
public class NrtController extends Object
- Author:
- Markus Neumann, Christian Pape
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
NrtController.MetricTuple
-
Constructor Summary
Constructors Constructor Description NrtController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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-Frontendprotected Map<String,List<NrtController.MetricTuple>>
getMetricIdsByProtocol(Map<String,String> rrdGraphAttributesMetaData)
Provides a Map that provides Lists of MetricIds by protocols.NrtBroker
getNrtBroker()
Map<String,String>
getRequiredExternalPropertyAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)
Set<RrdGraphAttribute>
getRequiredRrdGraphAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)
Map<String,String>
getRequiredStringPropertyAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)
ResourceStorageDao
getResourceStorageDao()
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.ModelAndView
nrtStart(ResourceId resourceId, String report, javax.servlet.http.HttpSession httpSession)
void
setGraphDao(GraphDao graphDao)
void
setNodeDao(NodeDao nodeDao)
void
setNrtBroker(NrtBroker nrtBroker)
void
setResourceDao(ResourceDao resourceDao)
void
setResourceStorageDao(ResourceStorageDao resourceStorageDao)
void
setSnmpAgentConfigFactory(SnmpAgentConfigFactory snmpAgentConfigFactory)
-
-
-
Method Detail
-
nrtStart
public ModelAndView nrtStart(ResourceId resourceId, String report, javax.servlet.http.HttpSession httpSession)
-
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
-
getRequiredRrdGraphAttributes
public Set<RrdGraphAttribute> getRequiredRrdGraphAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)
-
getRequiredExternalPropertyAttributes
public Map<String,String> getRequiredExternalPropertyAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)
-
getRequiredStringPropertyAttributes
public Map<String,String> getRequiredStringPropertyAttributes(OnmsResource reportResource, PrefabGraph prefabGraph)
-
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)
-
getResourceStorageDao
public ResourceStorageDao getResourceStorageDao()
-
setResourceStorageDao
public void setResourceStorageDao(ResourceStorageDao resourceStorageDao)
-
-