Search in sources :

Example 1 with ConfigNamespace

use of com.hazelcast.internal.config.ConfigNamespace in project hazelcast by hazelcast.

the class ConfigUpdateResult method toJsonArray.

private JsonArray toJsonArray(Set<ConfigNamespace> configs) {
    JsonArray configsAsJson = new JsonArray();
    for (ConfigNamespace ns : configs) {
        JsonObject namespaceAsJson = new JsonObject();
        namespaceAsJson.add("sectionName", ns.getSectionName());
        namespaceAsJson.add("configName", ns.getConfigName());
        configsAsJson.add(namespaceAsJson);
    }
    return configsAsJson;
}
Also used : JsonArray(com.hazelcast.internal.json.JsonArray) ConfigNamespace(com.hazelcast.internal.config.ConfigNamespace) JsonObject(com.hazelcast.internal.json.JsonObject)

Aggregations

ConfigNamespace (com.hazelcast.internal.config.ConfigNamespace)1 JsonArray (com.hazelcast.internal.json.JsonArray)1 JsonObject (com.hazelcast.internal.json.JsonObject)1