Search in sources :

Example 1 with ConfigXmlGenerator

use of com.hazelcast.config.ConfigXmlGenerator in project hazelcast by hazelcast.

the class MemberConfigRequest method writeResponse.

@Override
public void writeResponse(ManagementCenterService mcs, JsonObject root) {
    final JsonObject result = new JsonObject();
    ConfigXmlGenerator configXmlGenerator = new ConfigXmlGenerator(true);
    Config config = mcs.getHazelcastInstance().getConfig();
    String configXmlString = configXmlGenerator.generate(config);
    result.add("configXmlString", configXmlString);
    root.add("result", result);
}
Also used : Config(com.hazelcast.config.Config) JsonObject(com.eclipsesource.json.JsonObject) ConfigXmlGenerator(com.hazelcast.config.ConfigXmlGenerator)

Aggregations

JsonObject (com.eclipsesource.json.JsonObject)1 Config (com.hazelcast.config.Config)1 ConfigXmlGenerator (com.hazelcast.config.ConfigXmlGenerator)1