Package org.opennms.systemreport.opennms
Class OpenNMSReportPlugin
- java.lang.Object
-
- org.opennms.systemreport.AbstractSystemReportPlugin
-
- org.opennms.systemreport.opennms.OpenNMSReportPlugin
-
- All Implemented Interfaces:
java.lang.Comparable<SystemReportPlugin>
,SystemReportPlugin
,org.springframework.beans.factory.InitializingBean
public class OpenNMSReportPlugin extends AbstractSystemReportPlugin implements org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description AlarmDao
m_alarmDao
EventDao
m_eventDao
IpInterfaceDao
m_ipInterfaceDao
NodeDao
m_nodeDao
SnmpInterfaceDao
m_snmpInterfaceDao
-
Fields inherited from class org.opennms.systemreport.AbstractSystemReportPlugin
m_resourceLocator, MAX_PROCESS_WAIT
-
-
Constructor Summary
Constructors Constructor Description OpenNMSReportPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
java.lang.String
getDescription()
Get a short description of the plugin's operation.java.util.Map<java.lang.String,org.springframework.core.io.Resource>
getEntries()
Get a map of key/value pairs of data exposed by the plugin.java.lang.String
getName()
Get the name of this report plugin.int
getPriority()
Get the priority of this plugin.-
Methods inherited from class org.opennms.systemreport.AbstractSystemReportPlugin
addGetters, compareTo, createTemporaryFileFromString, getBean, getBean, getBeans, getOpenNMSProcesses, getResource, getResourceFromProperty, getResourceLocator, setResourceLocator, slurp, slurpCommand, splitMultilineString, toString
-
-
-
-
Field Detail
-
m_nodeDao
@Autowired public NodeDao m_nodeDao
-
m_ipInterfaceDao
@Autowired public IpInterfaceDao m_ipInterfaceDao
-
m_snmpInterfaceDao
@Autowired public SnmpInterfaceDao m_snmpInterfaceDao
-
m_eventDao
@Autowired public EventDao m_eventDao
-
m_alarmDao
@Autowired public AlarmDao m_alarmDao
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
getName
public java.lang.String getName()
Description copied from interface:SystemReportPlugin
Get the name of this report plugin.- Specified by:
getName
in interfaceSystemReportPlugin
- Returns:
- the name
-
getDescription
public java.lang.String getDescription()
Description copied from interface:SystemReportPlugin
Get a short description of the plugin's operation.- Specified by:
getDescription
in interfaceSystemReportPlugin
- Returns:
- the description
-
getPriority
public int getPriority()
Description copied from interface:SystemReportPlugin
Get the priority of this plugin. This will be used to sort the various plugins' output when creating an aggregate report. 1-10: system-level plugins 11-50: related to core system functionality (eg, events, alarms, notifications) 51-98: related to non-essential system functionality (eg, UI, reporting) 99: unknown priority- Specified by:
getPriority
in interfaceSystemReportPlugin
- Overrides:
getPriority
in classAbstractSystemReportPlugin
- Returns:
- the priority, from 1 to 99
-
getEntries
public java.util.Map<java.lang.String,org.springframework.core.io.Resource> getEntries()
Description copied from interface:SystemReportPlugin
Get a map of key/value pairs of data exposed by the plugin.- Specified by:
getEntries
in interfaceSystemReportPlugin
- Overrides:
getEntries
in classAbstractSystemReportPlugin
- Returns:
- the plugin's data
-
-