@Override public void fromJson(JsonObject json) { final Iterator<JsonObject.Member> managedExecutorsIteartor = getObject(json, "managedExecutorBeans").iterator(); while (managedExecutorsIteartor.hasNext()) { final JsonObject.Member next = managedExecutorsIteartor.next(); ManagedExecutorDTO managedExecutorBean = new ManagedExecutorDTO(); managedExecutorBean.fromJson(next.getValue().asObject()); managedExecutorBeans.put(next.getName(), managedExecutorBean); } eventServiceBean = new EventServiceDTO(); eventServiceBean.fromJson(getObject(json, "eventServiceBean")); operationServiceBean = new OperationServiceDTO(); operationServiceBean.fromJson(getObject(json, "operationServiceBean")); connectionManagerBean = new ConnectionManagerDTO(); connectionManagerBean.fromJson(getObject(json, "connectionManagerBean")); proxyServiceBean = new ProxyServiceDTO(); proxyServiceBean.fromJson(getObject(json, "proxyServiceBean")); partitionServiceBean = new PartitionServiceBeanDTO(); partitionServiceBean.fromJson(getObject(json, "partitionServiceBean")); } }
@Override public void fromJson(JsonObject json) { final Iterator<JsonObject.Member> managedExecutorsIteartor = getObject(json, "managedExecutorBeans").iterator(); while (managedExecutorsIteartor.hasNext()) { final JsonObject.Member next = managedExecutorsIteartor.next(); ManagedExecutorDTO managedExecutorBean = new ManagedExecutorDTO(); managedExecutorBean.fromJson(next.getValue().asObject()); managedExecutorBeans.put(next.getName(), managedExecutorBean); } eventServiceBean = new EventServiceDTO(); eventServiceBean.fromJson(getObject(json, "eventServiceBean")); operationServiceBean = new OperationServiceDTO(); operationServiceBean.fromJson(getObject(json, "operationServiceBean")); connectionManagerBean = new ConnectionManagerDTO(); connectionManagerBean.fromJson(getObject(json, "connectionManagerBean")); proxyServiceBean = new ProxyServiceDTO(); proxyServiceBean.fromJson(getObject(json, "proxyServiceBean")); partitionServiceBean = new PartitionServiceBeanDTO(); partitionServiceBean.fromJson(getObject(json, "partitionServiceBean")); } }
@Override public void fromJson(JsonObject json) { uuid = getString(json, "uuid"); address = getString(json, "address"); clientType = getString(json, "clientType"); name = getString(json, "name"); JsonObject attrObject = JsonUtil.getObject(json, "attributes"); attributes = new HashMap<String, String>(); for (JsonObject.Member member : attrObject) { String value = member.getValue().asString(); attributes.put(member.getName(), value); } } }
@Override public void fromJson(JsonObject json) { mapName = getString(json, "mapName"); update = getBoolean(json, "update"); config = new MapConfigDTO(); config.fromJson(getObject(json, "config")); } }
@Override public void fromJson(JsonObject json) { mapName = getString(json, "mapName"); update = getBoolean(json, "update"); config = new MapConfigDTO(); config.fromJson(getObject(json, "config")); } }
JsonObject request = JsonValue.readFrom(reader).asObject(); if (!request.isEmpty()) { JsonObject innerRequest = getObject(request, "request"); final int type = getInt(innerRequest, "type"); final int taskId = getInt(request, "taskId"); task.fromJson(getObject(innerRequest, "request")); boolean success; if (task instanceof AsyncConsoleRequest) {
JsonObject request = JsonValue.readFrom(reader).asObject(); if (!request.isEmpty()) { JsonObject innerRequest = getObject(request, "request"); final int type = getInt(innerRequest, "type"); final int taskId = getInt(request, "taskId"); task.fromJson(getObject(innerRequest, "request")); boolean success; if (task instanceof AsyncConsoleRequest) {
public void fromJson(JsonObject json) { address = getString(json, "address"); for (JsonObject.Member next : getObject(json, "mapStats")) { LocalMapStatsImpl stats = new LocalMapStatsImpl(); stats.fromJson(next.getValue().asObject()); mapStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "multiMapStats")) { LocalMultiMapStatsImpl stats = new LocalMultiMapStatsImpl(); stats.fromJson(next.getValue().asObject()); multiMapStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "replicatedMapStats", new JsonObject())) { LocalReplicatedMapStats stats = new LocalReplicatedMapStatsImpl(); stats.fromJson(next.getValue().asObject()); replicatedMapStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "queueStats")) { LocalQueueStatsImpl stats = new LocalQueueStatsImpl(); stats.fromJson(next.getValue().asObject()); queueStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "topicStats")) { LocalTopicStatsImpl stats = new LocalTopicStatsImpl(); stats.fromJson(next.getValue().asObject()); topicStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "reliableTopicStats")) { LocalTopicStatsImpl stats = new LocalTopicStatsImpl();
public void fromJson(JsonObject json) { address = getString(json, "address"); for (JsonObject.Member next : getObject(json, "mapStats")) { LocalMapStatsImpl stats = new LocalMapStatsImpl(); stats.fromJson(next.getValue().asObject()); mapStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "multiMapStats")) { LocalMultiMapStatsImpl stats = new LocalMultiMapStatsImpl(); stats.fromJson(next.getValue().asObject()); multiMapStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "replicatedMapStats", new JsonObject())) { LocalReplicatedMapStats stats = new LocalReplicatedMapStatsImpl(); stats.fromJson(next.getValue().asObject()); replicatedMapStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "queueStats")) { LocalQueueStatsImpl stats = new LocalQueueStatsImpl(); stats.fromJson(next.getValue().asObject()); queueStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "topicStats")) { LocalTopicStatsImpl stats = new LocalTopicStatsImpl(); stats.fromJson(next.getValue().asObject()); topicStats.put(next.getName(), stats); for (JsonObject.Member next : getObject(json, "reliableTopicStats")) { LocalTopicStatsImpl stats = new LocalTopicStatsImpl();
@Override public void fromJson(JsonObject json) { time = getLong(json, "time"); master = getBoolean(json, "master"); clusterName = getString(json, "clusterName"); JsonArray jsonMemberList = getArray(json, "memberList"); memberList = new ArrayList<String>(jsonMemberList.size()); for (JsonValue member : jsonMemberList.values()) { memberList.add(member.asString()); } JsonObject jsonMemberState = getObject(json, "memberState"); memberState = new MemberStateImpl(); memberState.fromJson(jsonMemberState); sslEnabled = getBoolean(json, "sslEnabled", false); lite = getBoolean(json, "lite"); socketInterceptorEnabled = getBoolean(json, "socketInterceptorEnabled"); scriptingEnabled = getBoolean(json, "scriptingEnabled"); }
@Override public void fromJson(JsonObject json) { time = getLong(json, "time"); master = getBoolean(json, "master"); clusterName = getString(json, "clusterName"); JsonArray jsonMemberList = getArray(json, "memberList"); memberList = new ArrayList<String>(jsonMemberList.size()); for (JsonValue member : jsonMemberList.values()) { memberList.add(member.asString()); } JsonObject jsonMemberState = getObject(json, "memberState"); memberState = new MemberStateImpl(); memberState.fromJson(jsonMemberState); sslEnabled = getBoolean(json, "sslEnabled", false); lite = getBoolean(json, "lite"); socketInterceptorEnabled = getBoolean(json, "socketInterceptorEnabled"); scriptingEnabled = getBoolean(json, "scriptingEnabled"); }
JsonObject indexes = getObject(json, "indexStats", null); if (indexes != null && !indexes.isEmpty()) { Map<String, LocalIndexStatsImpl> localIndexStats = new HashMap<String, LocalIndexStatsImpl>();
JsonObject indexes = getObject(json, "indexStats", null); if (indexes != null && !indexes.isEmpty()) { Map<String, LocalIndexStatsImpl> localIndexStats = new HashMap<String, LocalIndexStatsImpl>();
@Override public void fromJson(JsonObject json) { creationTime = getLong(json, JSON_CREATION_TIME, -1L); totalPhysical = getLong(json, JSON_TOTAL_PHYSICAL, -1L); freePhysical = getLong(json, JSON_FREE_PHYSICAL, -1L); maxNativeMemory = getLong(json, JSON_MAX_NATIVE_MEMORY, -1L); committedNativeMemory = getLong(json, JSON_COMMITTED_NATIVE_MEMORY, -1L); usedNativeMemory = getLong(json, JSON_USED_NATIVE_MEMORY, -1L); freeNativeMemory = getLong(json, JSON_FREE_NATIVE_MEMORY, -1L); maxHeap = getLong(json, JSON_MAX_HEAP, -1L); committedHeap = getLong(json, JSON_COMMITTED_HEAP, -1L); usedHeap = getLong(json, JSON_USED_HEAP, -1L); gcStats = new LocalGCStatsImpl(); if (json.get(JSON_GC_STATS) != null) { gcStats.fromJson(getObject(json, JSON_GC_STATS)); } }
@Override public void fromJson(JsonObject json) { creationTime = getLong(json, JSON_CREATION_TIME, -1L); totalPhysical = getLong(json, JSON_TOTAL_PHYSICAL, -1L); freePhysical = getLong(json, JSON_FREE_PHYSICAL, -1L); maxNativeMemory = getLong(json, JSON_MAX_NATIVE_MEMORY, -1L); committedNativeMemory = getLong(json, JSON_COMMITTED_NATIVE_MEMORY, -1L); usedNativeMemory = getLong(json, JSON_USED_NATIVE_MEMORY, -1L); freeNativeMemory = getLong(json, JSON_FREE_NATIVE_MEMORY, -1L); maxHeap = getLong(json, JSON_MAX_HEAP, -1L); committedHeap = getLong(json, JSON_COMMITTED_HEAP, -1L); usedHeap = getLong(json, JSON_USED_HEAP, -1L); gcStats = new LocalGCStatsImpl(); if (json.get(JSON_GC_STATS) != null) { gcStats.fromJson(getObject(json, JSON_GC_STATS)); } }