Details
-
Improvement
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
1.9.0
-
None
Description
Allow for YAML formatted configuration files (http://www.yaml.org/spec/1.2/spec.html).
This provides:
- A more condensed format than properties files
- Less 'typo' prone for repetitive common prefixes
- Ability to define a value once and reuse via references (see spec - Structures - Example 2.10
For example compare the following properties file and potential YAML equivalent:
agent.properties
host1.sources = source1
host1.channels = channel1
host1.sinks = sink1
host1.sources.source1.type = seq
host1.sources.source1.channels = channel1
host1.channels.channel1.type = memory
host1.channels.channel1.capacity = 10000
host1.sinks.sink1.type = null
host1.sinks.sink1.channel = channel1
agent.yaml
host1:
sources:
_: source1
source1:
type: seq
channels: channel1
channels:
_: channel1
channel1:
type: memory
capacity: 10000
sinks:
_: sink1
sink1:
type: null
channel: channel1