@Override public boolean hasChildren(String childType) { try { Statistics statistics = getStatistics(); if (statistics.getChildrenNames().contains(childType)) { Statistics childStatistics = statistics.getChild(childType); return childStatistics != null && childStatistics.getNames().size() > 0; } else { return super.hasChildren(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 false; } }
@Override public boolean hasChildren(String childType) { try { Statistics statistics = getStatistics(); if (statistics.getChildrenNames().contains(childType)) { Statistics childStatistics = statistics.getChild(childType); return childStatistics != null && childStatistics.getNames().size() > 0; } else { return super.hasChildren(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 false; } }
super.registerOperations(resourceRegistration); for(final String statisticName: statistics.getNames()) { final ModelType modelType = getModelType(statistics.getType(statisticName)); if(statistics.isOperation(statisticName)) {
super.registerOperations(resourceRegistration); for(final String statisticName: statistics.getNames()) { final ModelType modelType = getModelType(statistics.getType(statisticName)); if(statistics.isOperation(statisticName)) {
super.registerAttributes(resourceRegistration); for(final String statisticName: statistics.getNames()) { final ModelType modelType = getModelType(statistics.getType(statisticName)); final SimpleAttributeDefinitionBuilder simpleAttributeDefinitionBuilder =
super.registerAttributes(resourceRegistration); for(final String statisticName: statistics.getNames()) { final ModelType modelType = getModelType(statistics.getType(statisticName)); final SimpleAttributeDefinitionBuilder simpleAttributeDefinitionBuilder =