public class ServicesData extends HashMap<String,List<Map<String,Object>>>
{
"mysql": [
{
"label": "mysql",
"name": "mysql-db",
"plan": "100mb",
"tags": [ "mysql", "relational" ],
"credentials": {
"jdbcUrl": "jdbc:mysql://mysql-broker:3306/db?user=username&password=password",
"uri": "mysql://username:password@mysql-broker:3306/db?reconnect=true",
}
}
],
"rabbitmq": [
{
"label": "rabbitmq",
"name": "rabbit-queue",
"plan": "standard",
"tags": [ "rabbitmq", "messaging" ],
"credentials": {
"http_api_uri": "https://username:password@rabbitmq-broker:12345/api",
"uri": "amqp://username:password@rabbitmq-broker/vhost",
}
}
]
}
Then the ServicesData
data structure would hold the equivalent of this JSON
structure parsed to a Map.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ServicesData() |
ServicesData(HashMap<String,List<Map<String,Object>>> data)
Initialize with the provided
HashMap . |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString