private static boolean removeInCurrentStep(Resource resource) { for (String childType : resource.getChildTypes()) { for (Resource.ResourceEntry entry : resource.getChildren(childType)) { if (!entry.isRuntime() && resource.hasChild(entry.getPathElement())) { return false; } } } return true; }
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)); } } }
@Override public void registerAttributes(ManagementResourceRegistration resourceRegistration) { if (registerRuntimeOnly && ! deployed ) resourceRegistration.registerReadOnlyAttribute(INSTALLED_DRIVERS, InstalledDriversListOperationHandler.INSTANCE); }
@Override public void registerChildren(ManagementResourceRegistration resourceRegistration) { if (deployed) { resourceRegistration.registerSubModel(XaDataSourcePropertyDefinition.DEPLOYED_INSTANCE); } else { resourceRegistration.registerSubModel(XaDataSourcePropertyDefinition.INSTANCE); } }
/** * @return * @see org.jboss.as.controller.registry.Resource#getModel() */ public ModelNode getModel() { return delegate.getModel(); }
public static void removeStatisticsResources(Resource datasourceResource) { synchronized (JDBC_STATISTICS) { if (datasourceResource.hasChild(JDBC_STATISTICS)) { datasourceResource.removeChild(JDBC_STATISTICS); } if (datasourceResource.hasChild(POOL_STATISTICS)) { datasourceResource.removeChild(POOL_STATISTICS); } } }
/** * @param childType * @return * @see org.jboss.as.controller.registry.Resource#getChildren(java.lang.String) */ public Set<ResourceEntry> getChildren(String childType) { return delegate.getChildren(childType); }
@Override public void registerChild(PathElement address, Resource resource) { assert resource instanceof IronJacamarRuntimeResource; delegate.registerChild(address, resource); }
/** * @param childType * @return * @see org.jboss.as.controller.registry.Resource#getChildrenNames(java.lang.String) */ public Set<String> getChildrenNames(String childType) { return delegate.getChildrenNames(childType); }
/** * @return * @see org.jboss.as.controller.registry.Resource#getChildTypes() */ public Set<String> getChildTypes() { return delegate.getChildTypes(); }
/** * @param childType * @return * @see org.jboss.as.controller.registry.Resource#hasChildren(java.lang.String) */ public boolean hasChildren(String childType) { return delegate.hasChildren(childType); }
/** * @param address * @return * @see org.jboss.as.controller.registry.Resource#navigate(org.jboss.as.controller.PathAddress) */ public Resource navigate(PathAddress address) { return delegate.navigate(address); }
/** * @param newModel * @see org.jboss.as.controller.registry.Resource#writeModel(org.jboss.dmr.ModelNode) */ public void writeModel(ModelNode newModel) { delegate.writeModel(newModel); }
/** * @param element * @return * @see org.jboss.as.controller.registry.Resource#requireChild(org.jboss.as.controller.PathElement) */ public Resource requireChild(PathElement element) { return delegate.requireChild(element); }
/** * @return * @see org.jboss.as.controller.registry.Resource#isModelDefined() */ public boolean isModelDefined() { return delegate.isModelDefined(); }
/** * @return * @see org.jboss.as.controller.registry.Resource#isProxy() */ public boolean isProxy() { return delegate.isProxy(); }
@Override public void registerChildren(ManagementResourceRegistration resourceRegistration) { resourceRegistration.registerSubModel(ModClusterNodeDefinition.INSTANCE); resourceRegistration.registerSubModel(ModClusterLoadBalancingGroupDefinition.INSTANCE); }
@Override public void registerAttributes(ManagementResourceRegistration registration) { registration.registerReadOnlyAttribute(PATH, null); registration.registerReadOnlyAttribute(ENDPOINT_CLASS, null); } }
@Override public void registerChild(PathElement address, Resource resource) { assert resource instanceof LogStoreRuntimeResource; delegate.registerChild(address, resource); }
/** * @param address * @param resource * @see org.jboss.as.controller.registry.Resource#registerChild(org.jboss.as.controller.PathElement, * org.jboss.as.controller.registry.Resource) */ public void registerChild(PathElement address, Resource resource) { delegate.registerChild(address, resource); }