@@ -0,0 +1,1569 @@
+package com.exalttech.trex.core;%0A%0Aimport com.fasterxml.jackson.core.JsonProcessingException;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0A%0Apublic class RCPCommands %7B%0A    private static final class Commands %7B%0A        private static final String GET_ACTIVE_PGIDS = %22get_active_pgids%22;%0A        private static final String GET_PGID_STATS = %22get_pgid_stats%22;%0A    %7D%0A%0A    private RCPCommands() %7B%7D%0A%0A    public static String getActivePGIds() throws JsonProcessingException %7B%0A        return sendRequest(Commands.GET_ACTIVE_PGIDS, null);%0A    %7D%0A%0A    public static String getPGIdStats(List%3CInteger%3E pgIds) throws JsonProcessingException %7B%0A        if (pgIds == null) %7B%0A            pgIds = new ArrayList%3C%3E();%0A        %7D%0A        final Map%3CString, Object%3E parameters = new HashMap%3C%3E();%0A        parameters.put(%22pgids%22, pgIds);%0A        return sendRequest(Commands.GET_PGID_STATS, parameters);%0A    %7D%0A%0A    // Should be removed from here, it is needed only for old architecture%0A    private static String sendRequest(final String command, final Map%3CString, Object%3E parameters) throws%0A            JsonProcessingException%0A    %7B%0A        String stringParameters = %22%22;%0A        if (parameters != null) %7B%0A            final String jsonParameters = new ObjectMapper().writeValueAsString(parameters);%0A            stringParameters = jsonParameters.substring(1, jsonParameters.length() - 1);%0A        %7D%0A        return ConnectionManager.getInstance().sendRequest(command, stringParameters);%0A    %7D%0A%7D%0A

Add getActivePGIds and getPGIdStats commands.