From 4ae8a00e84132cbb399017ffd3c2f603396b7f40 Mon Sep 17 00:00:00 2001 From: Brian Stansberry Date: Sat, 2 Nov 2024 15:35:22 -0400 Subject: [PATCH] [WFCORE-7042] Introduce a urn:jboss:domain:core-management:preview:2.0 schema --- .../CoreManagementSubsystemSchema.java | 5 +- .../wildfly-core-management_preview_2_0.xsd | 121 ++++++++++++++++++ .../core-management-preview-2.0.xml | 9 ++ 3 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 core-management/core-management-subsystem/src/main/resources/schema/wildfly-core-management_preview_2_0.xsd create mode 100644 core-management/core-management-subsystem/src/test/resources/org/wildfly/extension/core/management/core-management-preview-2.0.xml diff --git a/core-management/core-management-subsystem/src/main/java/org/wildfly/extension/core/management/CoreManagementSubsystemSchema.java b/core-management/core-management-subsystem/src/main/java/org/wildfly/extension/core/management/CoreManagementSubsystemSchema.java index 371c7d30fb0..49102590feb 100644 --- a/core-management/core-management-subsystem/src/main/java/org/wildfly/extension/core/management/CoreManagementSubsystemSchema.java +++ b/core-management/core-management-subsystem/src/main/java/org/wildfly/extension/core/management/CoreManagementSubsystemSchema.java @@ -28,8 +28,9 @@ public enum CoreManagementSubsystemSchema implements PersistentSubsystemSchema { VERSION_1_0(1), - VERSION_1_0_PREVIEW(1, Stability.PREVIEW); - static final Map CURRENT = Feature.map(EnumSet.of(VERSION_1_0, VERSION_1_0_PREVIEW)); + VERSION_1_0_PREVIEW(1, Stability.PREVIEW), + VERSION_2_0_PREVIEW(2, Stability.PREVIEW); + static final Map CURRENT = Feature.map(EnumSet.of(VERSION_1_0, VERSION_2_0_PREVIEW)); private final VersionedNamespace namespace; diff --git a/core-management/core-management-subsystem/src/main/resources/schema/wildfly-core-management_preview_2_0.xsd b/core-management/core-management-subsystem/src/main/resources/schema/wildfly-core-management_preview_2_0.xsd new file mode 100644 index 00000000000..3f071d1870d --- /dev/null +++ b/core-management/core-management-subsystem/src/main/resources/schema/wildfly-core-management_preview_2_0.xsd @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + Configuration for the history of configuration changes. + + + + + + + Number of configuration changes that are available in history. + + + + + + + + + Configuration of the handling of finding unstable api annotations in the + user's code + + + + + + + Whether to log or throw an error if use of unstable api annotations are found + + + + + + + + + + + + + + + + Configuration for a process state listener. + + + + + + + + Configuration properties for the process state listener. + + + + + + + + Name of the process state listener. + + + + + + + ControlledProcessStateListener class implementation. + + + + + + + Module where the ControlledProcessStateListener implementation class may be found. + + + + + + + Timeout used in seconds, for listener operations. + If an individual listener operation takes longer than this timeout it will be canceled. + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/core-management/core-management-subsystem/src/test/resources/org/wildfly/extension/core/management/core-management-preview-2.0.xml b/core-management/core-management-subsystem/src/test/resources/org/wildfly/extension/core/management/core-management-preview-2.0.xml new file mode 100644 index 00000000000..2cc40c7ad4b --- /dev/null +++ b/core-management/core-management-subsystem/src/test/resources/org/wildfly/extension/core/management/core-management-preview-2.0.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file