use of com.hazelcast.internal.json.JsonObject in project hazelcast by hazelcast.
the class AbstractWanConfigurationEventBase method toJson.
public JsonObject toJson() {
JsonObject json = super.toJson();
json.add("wanConfigName", wanConfigName);
return json;
}
use of com.hazelcast.internal.json.JsonObject in project hazelcast by hazelcast.
the class AbstractWanSyncFinishedEvent method toJson.
@Override
public JsonObject toJson() {
JsonObject json = super.toJson();
json.add("durationSecs", durationSecs);
json.add("partitionsSynced", partitionsSynced);
json.add("recordsSynced", recordsSynced);
return json;
}
use of com.hazelcast.internal.json.JsonObject in project hazelcast by hazelcast.
the class ConfigUpdateFinishedEvent method toJson.
@Override
public JsonObject toJson() {
JsonObject json = super.toJson();
json.add("configUpdateResult", configUpdateResult.toJson());
return json;
}
use of com.hazelcast.internal.json.JsonObject in project hazelcast by hazelcast.
the class EventBatch method toJson.
public JsonObject toJson() {
JsonObject json = new JsonObject();
json.add("cluster", cluster);
json.add("address", address);
JsonArray eventJsonArray = new JsonArray();
for (Event event : events) {
JsonObject metadataJson = new JsonObject();
metadataJson.add("type", event.getType().getCode());
metadataJson.add("timestamp", event.getTimestamp());
JsonObject eventJson = new JsonObject();
eventJson.add("metadata", metadataJson);
eventJson.add("data", event.toJson());
eventJsonArray.add(eventJson);
}
json.add("events", eventJsonArray);
return json;
}
use of com.hazelcast.internal.json.JsonObject in project hazelcast by hazelcast.
the class WanAddConfigurationIgnoredEvent method toJson.
@Override
public JsonObject toJson() {
JsonObject json = super.toJson();
json.add("reason", reason);
return json;
}
Aggregations