@Override public Set<ResourceEntry> getChildren(final String childType) { if (CONTEXT.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResource.PlaceholderResourceEntry(PathElement.pathElement(CONTEXT, name))); } return result; } return Collections.emptySet(); }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (BatchJobExecutionResourceDefinition.EXECUTION.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResourceEntry(BatchJobExecutionResourceDefinition.EXECUTION, name)); } return result; } return delegate.getChildren(childType); }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (NODE.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new ModClusterNodeResource(name, this.name, modClusterName)); } return result; } else if(LOAD_BALANCING_GROUP.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResource.PlaceholderResourceEntry(PathElement.pathElement(LOAD_BALANCING_GROUP, name))); } return result; } return Collections.emptySet(); }
@Override public Set<ResourceEntry> getChildren(String childType) { if (ENTITYCACHE.equals(childType)) { Set<ResourceEntry> result = new HashSet<ResourceEntry>(); for (String name : getCacheRegionNames()) { result.add(new PlaceholderResource.PlaceholderResourceEntry(ENTITYCACHE, name)); } return result; } else if (ENTITY.equals(childType)) { Set<ResourceEntry> result = new HashSet<ResourceEntry>(); for (String name : getEntityNames()) { result.add(new PlaceholderResource.PlaceholderResourceEntry(ENTITY, name)); } return result; } else if (COLLECTION.equals(childType)) { Set<ResourceEntry> result = new HashSet<ResourceEntry>(); for (String name : getCollectionNames()) { result.add(new PlaceholderResource.PlaceholderResourceEntry(COLLECTION, name)); } return result; } else if (QUERYCACHE.equals(childType)) { Set<ResourceEntry> result = new HashSet<ResourceEntry>(); for (String name : getQueryNames()) { result.add(new PlaceholderResource.PlaceholderResourceEntry(QUERYCACHE, name)); } return result; } else { return super.getChildren(childType); } }
@Override public Set<ResourceEntry> getChildren(String childType) { try { Statistics statistics = getStatistics(); if (statistics.getChildrenNames().contains(childType)) { Set<ResourceEntry> result = new HashSet<ResourceEntry>(); Statistics childStatistics = statistics.getChild(childType); for (String name : childStatistics.getDynamicChildrenNames(entityManagerFactoryLookup, PathWrapper.path(puName))) { result.add(new PlaceholderResource.PlaceholderResourceEntry(childType, name)); } return result; } else { return super.getChildren(childType); } } catch (RuntimeException e) { // WFLY-2436 ignore unexpected exceptions (e.g. JIPI-27 may throw an IllegalStateException) // WFLY-10413 : also make sure to catch HibernateExceptions ROOT_LOGGER.unexpectedStatisticsProblem(e); return Collections.emptySet(); } }
@Override public Set<ResourceEntry> getChildren(String childType) { try { Statistics statistics = getStatistics(); if (statistics.getChildrenNames().contains(childType)) { Set<ResourceEntry> result = new HashSet<ResourceEntry>(); Statistics childStatistics = statistics.getChild(childType); for (String name : childStatistics.getDynamicChildrenNames(entityManagerFactoryLookup, PathWrapper.path(puName))) { result.add(new PlaceholderResource.PlaceholderResourceEntry(childType, name)); } return result; } else { return super.getChildren(childType); } } catch (RuntimeException e) { // WFLY-2436 ignore unexpected exceptions (e.g. JIPI-27 may throw an IllegalStateException) // WFLY-10413 : also make sure to catch HibernateExceptions ROOT_LOGGER.unexpectedStatisticsProblem(e); return Collections.emptySet(); } }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (NODE.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new ModClusterNodeResource(name, this.name, modClusterName)); } return result; } else if(LOAD_BALANCING_GROUP.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResource.PlaceholderResourceEntry(PathElement.pathElement(LOAD_BALANCING_GROUP, name))); } return result; } return Collections.emptySet(); }
@Override public Set<ResourceEntry> getChildren(String childType) { if (CORE_ADDRESS.equals(childType)) { Set<ResourceEntry> result = new HashSet<ResourceEntry>(); for (String name : getCoreAddressNames()) { result.add(new CoreAddressResource.CoreAddressResourceEntry(name, getManagementService())); } return result; } else if (RUNTIME_QUEUE.equals(childType)) { Set<ResourceEntry> result = new LinkedHashSet<ResourceEntry>(); for (String name : getCoreQueueNames()) { result.add(new PlaceholderResource.PlaceholderResourceEntry(RUNTIME_QUEUE, name)); } return result; } else { return delegate.getChildren(childType); } }
@Override public Set<ResourceEntry> getChildren(String childType) { if (CORE_ADDRESS.equals(childType)) { Set<ResourceEntry> result = new HashSet<ResourceEntry>(); for (String name : getCoreAddressNames()) { result.add(new CoreAddressResource.CoreAddressResourceEntry(name, getManagementService())); } return result; } else if (RUNTIME_QUEUE.equals(childType)) { Set<ResourceEntry> result = new LinkedHashSet<ResourceEntry>(); for (String name : getCoreQueueNames()) { result.add(new PlaceholderResource.PlaceholderResourceEntry(RUNTIME_QUEUE, name)); } return result; } else { return delegate.getChildren(childType); } }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (NODE.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new ModClusterNodeResource(name, this.name, modClusterName)); } return result; } else if(LOAD_BALANCING_GROUP.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResource.PlaceholderResourceEntry(PathElement.pathElement(LOAD_BALANCING_GROUP, name))); } return result; } return Collections.emptySet(); }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (CONTEXT.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResource.PlaceholderResourceEntry(PathElement.pathElement(CONTEXT, name))); } return result; } return Collections.emptySet(); }
@Override public Set<ResourceEntry> getChildren(String childType) { Set<ResourceEntry> set = new HashSet<>(); for (String s : getChildrenNames(childType)) { PlaceholderResource.PlaceholderResourceEntry placeholderResourceEntry = new PlaceholderResource.PlaceholderResourceEntry(ElytronDescriptionConstants.SSL_SESSION, s); set.add(placeholderResourceEntry); } return set; }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (BatchJobExecutionResourceDefinition.EXECUTION.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResourceEntry(BatchJobExecutionResourceDefinition.EXECUTION, name)); } return result; } return delegate.getChildren(childType); }
public static void registerStatisticsResources(Resource resource) { synchronized (POOL_STATISTICS) { if (!resource.hasChild(POOL_STATISTICS)) { resource.registerChild(POOL_STATISTICS, new PlaceholderResource.PlaceholderResourceEntry(POOL_STATISTICS)); } } }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (LogFileResourceDefinition.NAME.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResourceEntry(LogFileResourceDefinition.NAME, name)); } return result; } return delegate.getChildren(childType); }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (LogFileResourceDefinition.NAME.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResourceEntry(LogFileResourceDefinition.NAME, name)); } return result; } return delegate.getChildren(childType); }
public static void registerStatisticsResources(Resource resource) { synchronized (POOL_STATISTICS) { if (!resource.hasChild(POOL_STATISTICS)) { resource.registerChild(POOL_STATISTICS, new PlaceholderResource.PlaceholderResourceEntry(POOL_STATISTICS)); } } }
@Override public Set<ResourceEntry> getChildren(final String childType) { if (CONTEXT.equals(childType)) { final Set<String> names = getChildrenNames(childType); final Set<ResourceEntry> result = new LinkedHashSet<>(names.size()); for (String name : names) { result.add(new PlaceholderResource.PlaceholderResourceEntry(PathElement.pathElement(CONTEXT, name))); } return result; } return Collections.emptySet(); }
public static void registerStatisticsResources(Resource datasourceResource) { synchronized (JDBC_STATISTICS) { if (!datasourceResource.hasChild(JDBC_STATISTICS)) { datasourceResource.registerChild(JDBC_STATISTICS, new PlaceholderResource.PlaceholderResourceEntry(JDBC_STATISTICS)); } if (!datasourceResource.hasChild(POOL_STATISTICS)) { datasourceResource.registerChild(POOL_STATISTICS, new PlaceholderResource.PlaceholderResourceEntry(POOL_STATISTICS)); } } }
public static void registerStatisticsResources(Resource datasourceResource) { synchronized (JDBC_STATISTICS) { if (!datasourceResource.hasChild(JDBC_STATISTICS)) { datasourceResource.registerChild(JDBC_STATISTICS, new PlaceholderResource.PlaceholderResourceEntry(JDBC_STATISTICS)); } if (!datasourceResource.hasChild(POOL_STATISTICS)) { datasourceResource.registerChild(POOL_STATISTICS, new PlaceholderResource.PlaceholderResourceEntry(POOL_STATISTICS)); } } }