Class GraphPropertiesParser


  • public class GraphPropertiesParser
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Integer getIntegerReportProperty​(java.util.Properties props, java.lang.String key, java.lang.String suffix, boolean required)  
      static java.util.List<org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph> loadPreFabGraphsFromInputStream​(java.io.InputStream inputStream)  
      static org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph makePrefabGraph​(java.lang.String name, java.util.Properties props)  
      static java.lang.String[] parseBundleList​(java.lang.String list)
      Parses a string into an array of substrings, using a comma as a delimiter and trimming whitespace.
      static java.lang.String[] parseBundleList​(java.lang.String list, java.lang.String delimiter)
      Parses a string into an array of substrings, using the specified delimeter and trimming whitespace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_GRAPH_LIST_KEY

        public static final java.lang.String DEFAULT_GRAPH_LIST_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • GraphPropertiesParser

        public GraphPropertiesParser()
    • Method Detail

      • loadPreFabGraphsFromInputStream

        public static java.util.List<org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph> loadPreFabGraphsFromInputStream​(java.io.InputStream inputStream)
                                                                                                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • makePrefabGraph

        public static org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph makePrefabGraph​(java.lang.String name,
                                                                                                              java.util.Properties props)
      • getIntegerReportProperty

        public static java.lang.Integer getIntegerReportProperty​(java.util.Properties props,
                                                                 java.lang.String key,
                                                                 java.lang.String suffix,
                                                                 boolean required)
      • parseBundleList

        public static java.lang.String[] parseBundleList​(java.lang.String list)
        Parses a string into an array of substrings, using a comma as a delimiter and trimming whitespace.
        Parameters:
        list - The list formatted as a delimeter -delimited string.
        Returns:
        The list formatted as an array of strings.
      • parseBundleList

        public static java.lang.String[] parseBundleList​(java.lang.String list,
                                                         java.lang.String delimiter)
        Parses a string into an array of substrings, using the specified delimeter and trimming whitespace.
        Parameters:
        list - The list formatted as a delimeter -delimited string.
        delimiter - The delimeter.
        Returns:
        The list formatted as an array of strings.