/** * Get the resources in the Cellar cluster groups configuration. * * @param listType the comma separated string of resources. * @param groups the cluster groups names. * @param category the resource category name. * @param type the event type (inbound, outbound). * @return the set of resources. */ public Set<String> getListEntries(String listType, Collection<String> groups, String category, EventType type) { Set<String> result = null; if (groups != null && !groups.isEmpty()) { for (String group : groups) { Set<String> items = getListEntries(listType, group, category, type); if (items != null && !items.isEmpty()) { if (result == null) result = new HashSet<String>(); result.addAll(items); } } } return result; }
/** * Get the resources in the Cellar cluster groups configuration. * * @param listType the comma separated string of resources. * @param groups the cluster groups names. * @param category the resource category name. * @param type the event type (inbound, outbound). * @return the set of resources. */ public Set<String> getListEntries(String listType, Collection<String> groups, String category, EventType type) { Set<String> result = null; if (groups != null && !groups.isEmpty()) { for (String group : groups) { Set<String> items = getListEntries(listType, group, category, type); if (items != null && !items.isEmpty()) { if (result == null) result = new HashSet<String>(); result.addAll(items); } } } return result; }
/** * Get a set of resources in the Cellar cluster groups configuration. * * @param listType a comma separated string of resources. * @param group the cluster group. * @param category the resource category name. * @param type the event type (inbound, outbound). * @return the set of resources. */ public Set<String> getListEntries(String listType, Group group, String category, EventType type) { Set<String> result = null; if (group != null) { String groupName = group.getName(); Set<String> items = getListEntries(listType, groupName, category, type); if (items != null && !items.isEmpty()) { if (result == null) result = new HashSet<String>(); result.addAll(items); } } return result; }
/** * Get a set of resources in the Cellar cluster groups configuration. * * @param listType a comma separated string of resources. * @param group the cluster group. * @param category the resource category name. * @param type the event type (inbound, outbound). * @return the set of resources. */ public Set<String> getListEntries(String listType, Group group, String category, EventType type) { Set<String> result = null; if (group != null) { String groupName = group.getName(); Set<String> items = getListEntries(listType, groupName, category, type); if (items != null && !items.isEmpty()) { if (result == null) result = new HashSet<String>(); result.addAll(items); } } return result; }
String parent = (String) dictionary.get(group + Configurations.SEPARATOR + Configurations.PARENT); if (parent != null) { result = getListEntries(listType, parent, category, type);
Set<String> whiteList = getListEntries(Configurations.WHITELIST, group, category, type); Set<String> blackList = getListEntries(Configurations.BLACKLIST, group, category, type);
String parent = (String) dictionary.get(group + Configurations.SEPARATOR + Configurations.PARENT); if (parent != null) { result = getListEntries(listType, parent, category, type);
Set<String> whiteList = getListEntries(Configurations.WHITELIST, group, category, type); Set<String> blackList = getListEntries(Configurations.BLACKLIST, group, category, type);
if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString());
if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString());
if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString());
if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString());
if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString());
if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.INBOUND); System.out.println(list.toString()); if (whitelist) { System.out.print("\twhitelist: "); Set<String> list = support.getListEntries(Configurations.WHITELIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString()); Set<String> list = support.getListEntries(Configurations.BLACKLIST, groupName, Constants.CATEGORY, EventType.OUTBOUND); System.out.println(list.toString());