public class GraphPropertiesParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_GRAPH_LIST_KEY |
| Constructor and Description |
|---|
GraphPropertiesParser() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
getIntegerReportProperty(Properties props,
String key,
String suffix,
boolean required) |
static List<org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph> |
loadPreFabGraphsFromInputStream(InputStream inputStream) |
static org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph |
makePrefabGraph(String name,
Properties props) |
static String[] |
parseBundleList(String list)
Parses a string into an array of substrings, using a comma as a delimiter
and trimming whitespace.
|
static String[] |
parseBundleList(String list,
String delimiter)
Parses a string into an array of substrings, using the specified
delimeter and trimming whitespace.
|
public static final String DEFAULT_GRAPH_LIST_KEY
public static List<org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph> loadPreFabGraphsFromInputStream(InputStream inputStream) throws IOException
IOExceptionpublic static org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph makePrefabGraph(String name, Properties props)
public static Integer getIntegerReportProperty(Properties props, String key, String suffix, boolean required)
public static String[] parseBundleList(String list)
list - The list formatted as a delimeter -delimited
string.public static String[] parseBundleList(String list, String delimiter)
list - The list formatted as a delimeter -delimited
string.delimiter - The delimeter.Copyright © 2020. All rights reserved.