/** * * @param config contains all the configuration that are defined for the monitors. * @return a unique collection of monitor names for which configuration has been defined in the config object */ private static Set<String> getMonitorNames(Config config) { Set<String> monitorNames = new HashSet<>(); for (String configKey : config.keySet()) { String[] configKeyComponents = StringUtils.split(configKey, MONITOR_CONFIG_KEY_SEPARATOR); Preconditions.checkState(configKeyComponents.length != 0); String monitorName = configKeyComponents[0]; monitorNames.add(monitorName); } return monitorNames; }
public List<String> getStoreNames() { Config subConfig = subset(STORE_PREFIX, true); List<String> storeNames = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(FACTORY_SUFFIX)) { storeNames.add(key.substring(0, key.length() - FACTORY_SUFFIX.length())); } } return storeNames; }
public List<String> getStoreNames() { Config subConfig = subset(STORE_PREFIX, true); List<String> storeNames = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(FACTORY_SUFFIX)) { storeNames.add(key.substring(0, key.length() - FACTORY_SUFFIX.length())); } } return storeNames; }
/** * Get Id's of all tables * @return list of table Id's */ public List<String> getTableIds() { Config subConfig = subset(TABLES_PREFIX, true); Set<String> tableNames = subConfig.keySet().stream() .filter(k -> k.endsWith(TABLE_PROVIDER_FACTORY_SUFFIX)) .map(k -> k.replace(TABLE_PROVIDER_FACTORY_SUFFIX, "")) .collect(Collectors.toSet()); return new LinkedList<>(tableNames); }
public List<String> getStoreNames() { Config subConfig = subset(STORE_PREFIX, true); List<String> storeNames = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(FACTORY_SUFFIX)) { storeNames.add(key.substring(0, key.length() - FACTORY_SUFFIX.length())); } } return storeNames; }
/** * Get Id's of all tables * @return list of table Id's */ public List<String> getTableIds() { Config subConfig = subset(TABLES_PREFIX, true); Set<String> tableNames = subConfig.keySet().stream() .filter(k -> k.endsWith(TABLE_PROVIDER_FACTORY_SUFFIX)) .map(k -> k.replace(TABLE_PROVIDER_FACTORY_SUFFIX, "")) .collect(Collectors.toSet()); return new LinkedList<>(tableNames); }
public List<String> getResourceNames() { Config subConfig = config.subset(RESOURCE_PREFIX, true); List<String> resourceNames = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(PATH_SUFFIX)) { resourceNames.add(key.substring(0, key.length() - PATH_SUFFIX.length())); } } return resourceNames; }
public List<String> getResourceNames() { Config subConfig = config.subset(RESOURCE_PREFIX, true); List<String> resourceNames = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(PATH_SUFFIX)) { resourceNames.add(key.substring(0, key.length() - PATH_SUFFIX.length())); } } return resourceNames; }
public List<String> getStoreNames() { Config subConfig = subset(STORE_PREFIX, true); List<String> storeNames = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(FACTORY_SUFFIX)) { storeNames.add(key.substring(0, key.length() - FACTORY_SUFFIX.length())); } } return storeNames; }
/** * Get Id's of all tables * @return list of table Id's */ public List<String> getTableIds() { Config subConfig = subset(TABLES_PREFIX, true); Set<String> tableNames = subConfig.keySet().stream() .filter(k -> k.endsWith(TABLE_PROVIDER_FACTORY_SUFFIX)) .map(k -> k.replace(TABLE_PROVIDER_FACTORY_SUFFIX, "")) .collect(Collectors.toSet()); return new LinkedList<>(tableNames); }
/** * Get Id's of all tables * @return list of table Id's */ public List<String> getTableIds() { Config subConfig = subset(TABLES_PREFIX, true); Set<String> tableNames = subConfig.keySet().stream() .filter(k -> k.endsWith(TABLE_PROVIDER_FACTORY_SUFFIX)) .map(k -> k.replace(TABLE_PROVIDER_FACTORY_SUFFIX, "")) .collect(Collectors.toSet()); return new LinkedList<>(tableNames); }
/** * Get all schemes * @return List of schemes in strings */ public List<String> getSchemes() { Config subConfig = config.subset(FS_IMPL_PREFIX, true); List<String> schemes = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(FS_IMPL_SUFFIX)) { schemes.add(key.substring(0, key.length() - FS_IMPL_SUFFIX.length())); } } return schemes; }
/** * Get all schemes * @return List of schemes in strings */ public List<String> getSchemes() { Config subConfig = config.subset(FS_IMPL_PREFIX, true); List<String> schemes = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(FS_IMPL_SUFFIX)) { schemes.add(key.substring(0, key.length() - FS_IMPL_SUFFIX.length())); } } return schemes; }
/** * Get Id's of all tables * @return list of table Id's */ public List<String> getTableIds() { Config subConfig = subset(TABLES_PREFIX, true); Set<String> tableNames = subConfig.keySet().stream() .filter(k -> k.endsWith(TABLE_PROVIDER_FACTORY_SUFFIX)) .map(k -> k.replace(TABLE_PROVIDER_FACTORY_SUFFIX, "")) .collect(Collectors.toSet()); return new LinkedList<>(tableNames); }
public List<String> getStoreNames() { Config subConfig = subset(STORE_PREFIX, true); List<String> storeNames = new ArrayList<String>(); for (String key : subConfig.keySet()) { if (key.endsWith(FACTORY_SUFFIX)) { storeNames.add(key.substring(0, key.length() - FACTORY_SUFFIX.length())); } } return storeNames; }
/** * Useful for getting individual serializers. * @return a list of all serializer names from the config file */ public List<String> getSerdeNames() { List<String> results = new ArrayList<String>(); Config subConfig = subset(String.format(SERIALIZER_PREFIX, ""), true); for (String key : subConfig.keySet()) { if (key.endsWith(".class")) { results.add(key.replace(".class", "")); } } return results; } }
/** * Useful for getting individual serializers. * @return a list of all serializer names from the config file */ public List<String> getSerdeNames() { List<String> results = new ArrayList<String>(); Config subConfig = subset(String.format(SERIALIZER_PREFIX, ""), true); for (String key : subConfig.keySet()) { if (key.endsWith(".class")) { results.add(key.replace(".class", "")); } } return results; } }
/** * Useful for getting individual serializers. * @return a list of all serializer names from the config file */ public List<String> getSerdeNames() { List<String> results = new ArrayList<String>(); Config subConfig = subset(String.format(SERIALIZER_PREFIX, ""), true); for (String key : subConfig.keySet()) { if (key.endsWith(".class")) { results.add(key.replace(".class", "")); } } return results; } }
/** * Useful for getting individual serializers. * @return a list of all serializer names from the config file */ public List<String> getSerdeNames() { List<String> results = new ArrayList<String>(); Config subConfig = subset(String.format(SERIALIZER_PREFIX, ""), true); for (String key : subConfig.keySet()) { if (key.endsWith(".class")) { results.add(key.replace(".class", "")); } } return results; } }
/** * Useful for getting individual serializers. * @return a list of all serializer names from the config file */ public List<String> getSerdeNames() { List<String> results = new ArrayList<String>(); Config subConfig = subset(String.format(SERIALIZER_PREFIX, ""), true); for (String key : subConfig.keySet()) { if (key.endsWith(".class")) { results.add(key.replace(".class", "")); } } return results; } }