-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WFCORE-7042] Introduce a urn:jboss:domain:core-management:preview:2.…
…0 schema
- Loading branch information
1 parent
f507a48
commit 4ae8a00
Showing
3 changed files
with
133 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 121 additions & 0 deletions
121
...re-management-subsystem/src/main/resources/schema/wildfly-core-management_preview_2_0.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
~ Copyright The WildFly Authors | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace="urn:jboss:domain:core-management:preview:2.0" | ||
xmlns="urn:jboss:domain:core-management:preview:2.0" | ||
elementFormDefault="qualified" | ||
attributeFormDefault="unqualified" | ||
version="1.0"> | ||
|
||
<!-- The core-management subsystem root element --> | ||
<xs:element name="subsystem"> | ||
<xs:complexType> | ||
<xs:all minOccurs="0" maxOccurs="1"> | ||
<xs:element name="configuration-changes" minOccurs="0" maxOccurs="1"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Configuration for the history of configuration changes. | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:attribute name="max-history" type="xs:integer" use="optional" default="10"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Number of configuration changes that are available in history. | ||
</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="unstable-api-annotations" minOccurs="0" maxOccurs="1"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Configuration of the handling of finding unstable api annotations in the | ||
user's code | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:attribute name="level" default="LOG"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Whether to log or throw an error if use of unstable api annotations are found | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:token"> | ||
<xs:enumeration value="LOG"/> | ||
<xs:enumeration value="ERROR"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
|
||
</xs:attribute> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="process-state-listener" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Configuration for a process state listener. | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="properties" minOccurs="0" type="properties"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Configuration properties for the process state listener. | ||
</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
<xs:attribute name="name" type="xs:string" use="required"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Name of the process state listener. | ||
</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="class" type="xs:string" use="required"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
ControlledProcessStateListener class implementation. | ||
</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="module" type="xs:string" use="required"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Module where the ControlledProcessStateListener implementation class may be found. | ||
</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
<xs:attribute name="timeout" type="xs:int" use="optional" default="30"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Timeout used in seconds, for listener operations. | ||
If an individual listener operation takes longer than this timeout it will be canceled. | ||
</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:all> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:complexType name="properties"> | ||
<xs:sequence> | ||
<xs:element name="property" type="propertyType" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="propertyType"> | ||
<xs:attribute name="name" use="required"/> | ||
<xs:attribute name="value" use="optional"/> | ||
</xs:complexType> | ||
|
||
</xs:schema> |
9 changes: 9 additions & 0 deletions
9
.../src/test/resources/org/wildfly/extension/core/management/core-management-preview-2.0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- | ||
~ Copyright The WildFly Authors | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
<subsystem xmlns="urn:jboss:domain:core-management:preview:2.0"> | ||
<configuration-changes max-history="10"/> | ||
<unstable-api-annotations level="LOG"/> | ||
<process-state-listener name="x" class="org.acme.foo.MyClass" module="org.acme.foo"/> | ||
</subsystem> |