Package org.opennms.systemreport
Class AbstractSystemReportPlugin
- java.lang.Object
- 
- org.opennms.systemreport.AbstractSystemReportPlugin
 
- 
- All Implemented Interfaces:
- Comparable<SystemReportPlugin>,- SystemReportPlugin
 - Direct Known Subclasses:
- ConfigurationReportPlugin,- JavaReportPlugin,- LogReportPlugin,- LsofReportPlugin,- OpenNMSReportPlugin,- OSReportPlugin,- ThreadReportPlugin,- TopEventReportPlugin,- TopReportPlugin
 
 public abstract class AbstractSystemReportPlugin extends Object implements SystemReportPlugin 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ResourceLocatorm_resourceLocatorprotected static longMAX_PROCESS_WAIT
 - 
Constructor SummaryConstructors Constructor Description AbstractSystemReportPlugin()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddGetters(Object o, Map<String,org.springframework.core.io.Resource> map)intcompareTo(SystemReportPlugin o)protected FilecreateTemporaryFileFromString(String text)protected <T> TgetBean(String mxBeanName, Class<T> clazz)protected <T> TgetBean(String mxBeanName, List<? extends Class<T>> classes)protected <T> List<T>getBeans(String mxBeanName, Class<T> clazz)Map<String,org.springframework.core.io.Resource>getEntries()Get a map of key/value pairs of data exposed by the plugin.protected Set<Integer>getOpenNMSProcesses()intgetPriority()Get the priority of this plugin.protected org.springframework.core.io.ResourcegetResource(String text)protected org.springframework.core.io.ResourcegetResourceFromProperty(String propertyName)protected ResourceLocatorgetResourceLocator()protected voidsetResourceLocator(ResourceLocator resourceLocator)protected Stringslurp(File lsb)protected StringslurpCommand(String[] command)protected Map<String,String>splitMultilineString(String regex, String text)StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.opennms.systemreport.SystemReportPlugingetDescription, getName
 
- 
 
- 
- 
- 
Field Detail- 
MAX_PROCESS_WAITprotected static final long MAX_PROCESS_WAIT - See Also:
- Constant Field Values
 
 - 
m_resourceLocatorprotected ResourceLocator m_resourceLocator 
 
- 
 - 
Method Detail- 
getPrioritypublic int getPriority() Description copied from interface:SystemReportPluginGet 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:
- getPriorityin interface- SystemReportPlugin
- Returns:
- the priority, from 1 to 99
 
 - 
getResourceLocatorprotected ResourceLocator getResourceLocator() 
 - 
setResourceLocatorprotected void setResourceLocator(ResourceLocator resourceLocator) 
 - 
getEntriespublic Map<String,org.springframework.core.io.Resource> getEntries() Description copied from interface:SystemReportPluginGet a map of key/value pairs of data exposed by the plugin.- Specified by:
- getEntriesin interface- SystemReportPlugin
- Returns:
- the plugin's data
 
 - 
compareTopublic int compareTo(SystemReportPlugin o) - Specified by:
- compareToin interface- Comparable<SystemReportPlugin>
 
 - 
getResourceFromPropertyprotected org.springframework.core.io.Resource getResourceFromProperty(String propertyName) 
 - 
getResourceprotected org.springframework.core.io.Resource getResource(String text) 
 - 
addGettersprotected void addGetters(Object o, Map<String,org.springframework.core.io.Resource> map) 
 
- 
 
-