public class FluxParser extends Object
Modifier and Type | Method and Description |
---|---|
static TopologyDef |
parseFile(String inputFile,
boolean dumpYaml,
boolean processIncludes,
Properties properties,
boolean envSub)
Parse a flux topology definition.
|
static TopologyDef |
parseInputStream(InputStream inputStream,
boolean dumpYaml,
boolean processIncludes,
Properties properties,
boolean envSub)
Parse a flux topology definition.
|
static Properties |
parseProperties(String propertiesFile,
boolean resource)
Parse filter properties file.
|
static TopologyDef |
parseResource(String resource,
boolean dumpYaml,
boolean processIncludes,
Properties properties,
boolean envSub)
Parse a flux topology definition from a classpath resource..
|
public static TopologyDef parseFile(String inputFile, boolean dumpYaml, boolean processIncludes, Properties properties, boolean envSub) throws IOException
inputFile
- source YAML filedumpYaml
- if true, dump the parsed YAML to stdoutprocessIncludes
- whether or not to process includesproperties
- properties file for variable substitutionenvSub
- whether or not to perform environment variable substitutionIOException
- if there is a problem reading file(s)public static TopologyDef parseResource(String resource, boolean dumpYaml, boolean processIncludes, Properties properties, boolean envSub) throws IOException
resource
- YAML resourcedumpYaml
- if true, dump the parsed YAML to stdoutprocessIncludes
- whether or not to process includesproperties
- properties file for variable substitutionenvSub
- whether or not to perform environment variable substitutionIOException
- if there is a problem reading file(s)public static TopologyDef parseInputStream(InputStream inputStream, boolean dumpYaml, boolean processIncludes, Properties properties, boolean envSub) throws IOException
inputStream
- InputStream representation of YAML filedumpYaml
- if true, dump the parsed YAML to stdoutprocessIncludes
- whether or not to process includesproperties
- properties file for variable substitutionenvSub
- whether or not to perform environment variable substitutionIOException
- if there is a problem reading file(s)public static Properties parseProperties(String propertiesFile, boolean resource) throws IOException
propertiesFile
- properties file for variable substitutionresource
- whether or not to load properties file from classpathIOException
- if there is a problem reading fileCopyright © 2023 The Apache Software Foundation. All rights reserved.