@Override public void fromJson(JsonObject json) { final JsonArray jsonPartitions = getArray(json, "partitions"); for (JsonValue jsonPartition : jsonPartitions) { partitions.add(jsonPartition.asInt()); } memberStateSafe = getBoolean(json, "memberStateSafe"); migrationQueueSize = getInt(json, "migrationQueueSize"); }
@Override public void fromJson(JsonObject json) { final JsonArray jsonPartitions = getArray(json, "partitions"); for (JsonValue jsonPartition : jsonPartitions) { partitions.add(jsonPartition.asInt()); } memberStateSafe = getBoolean(json, "memberStateSafe"); migrationQueueSize = getInt(json, "migrationQueueSize"); }
@Override public void fromJson(JsonObject json) { maxVisibleSlowOperationCount = getLong(json, "maxVisibleSlowOperationCount", Long.MAX_VALUE); for (JsonValue jsonValue : getArray(json, "slowOperations")) { SlowOperationDTO slowOperationDTO = new SlowOperationDTO(); slowOperationDTO.fromJson(jsonValue.asObject()); slowOperations.add(slowOperationDTO); } creationTime = getLong(json, "creationTime", -1L); }
@Override public void fromJson(JsonObject json) { maxVisibleSlowOperationCount = getLong(json, "maxVisibleSlowOperationCount", Long.MAX_VALUE); for (JsonValue jsonValue : getArray(json, "slowOperations")) { SlowOperationDTO slowOperationDTO = new SlowOperationDTO(); slowOperationDTO.fromJson(jsonValue.asObject()); slowOperations.add(slowOperationDTO); } creationTime = getLong(json, "creationTime", -1L); }
@Override public void fromJson(JsonObject json) { operation = getString(json, "operation"); stackTrace = getString(json, "stackTrace"); totalInvocations = getInt(json, "totalInvocations"); invocations = new ArrayList<SlowOperationInvocationDTO>(); for (JsonValue jsonValue : getArray(json, "invocations")) { SlowOperationInvocationDTO slowOperationInvocationDTO = new SlowOperationInvocationDTO(); slowOperationInvocationDTO.fromJson(jsonValue.asObject()); invocations.add(slowOperationInvocationDTO); } } }
@Override public void fromJson(JsonObject json) { operation = getString(json, "operation"); stackTrace = getString(json, "stackTrace"); totalInvocations = getInt(json, "totalInvocations"); invocations = new ArrayList<SlowOperationInvocationDTO>(); for (JsonValue jsonValue : getArray(json, "invocations")) { SlowOperationInvocationDTO slowOperationInvocationDTO = new SlowOperationInvocationDTO(); slowOperationInvocationDTO.fromJson(jsonValue.asObject()); invocations.add(slowOperationInvocationDTO); } } }
@Override public void fromJson(JsonObject json) { script = getString(json, "script", ""); engine = getString(json, "engine", ""); final JsonArray array = getArray(json, "targets", new JsonArray()); targets = createHashSet(array.size()); for (JsonValue target : array) { targets.add(target.asString()); } }
@Override public void fromJson(JsonObject json) { script = getString(json, "script", ""); engine = getString(json, "engine", ""); final JsonArray array = getArray(json, "targets", new JsonArray()); targets = createHashSet(array.size()); for (JsonValue target : array) { targets.add(target.asString()); } }
@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"); }
runtimeProps.put(next.getName(), next.getValue().asLong()); final JsonArray jsonClients = getArray(json, "clients"); for (JsonValue jsonClient : jsonClients) { final ClientEndPointDTO client = new ClientEndPointDTO();
runtimeProps.put(next.getName(), next.getValue().asLong()); final JsonArray jsonClients = getArray(json, "clients"); for (JsonValue jsonClient : jsonClients) { final ClientEndPointDTO client = new ClientEndPointDTO();