jboss-as-cli_1_2.xsd 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2012, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. xmlns="urn:jboss:cli:1.1"
  25. targetNamespace="urn:jboss:cli:1.1"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. >
  29. <xs:element name="jboss-cli">
  30. <xs:annotation>
  31. <xs:documentation>
  32. Root element for the JBoss Command Line Interface configuration.
  33. </xs:documentation>
  34. </xs:annotation>
  35. <xs:complexType>
  36. <xs:sequence>
  37. <xs:element ref="default-controller" minOccurs="0"/>
  38. <xs:element ref="validate-operation-requests" minOccurs="0"/>
  39. <xs:element ref="history" minOccurs="0"/>
  40. <xs:element name="resolve-parameter-values" type="xs:boolean" minOccurs="0" maxOccurs="1" default="false">
  41. <xs:annotation>
  42. <xs:documentation>
  43. Whether to resolve system properties specified as command argument (or operation parameter)
  44. values before sending the operation request to the controller or let the resolution happen
  45. on the server side.
  46. </xs:documentation>
  47. </xs:annotation>
  48. </xs:element>
  49. <xs:element ref="connection-timeout" minOccurs="0" maxOccurs="1"/>
  50. <xs:element ref="ssl" minOccurs="0" maxOccurs="1"/>
  51. <xs:element ref="silent" minOccurs="0" maxOccurs="1"/>
  52. </xs:sequence>
  53. </xs:complexType>
  54. </xs:element>
  55. <xs:element name="default-controller">
  56. <xs:annotation>
  57. <xs:documentation>
  58. This element contains the configuration of the default controller to connect to
  59. when the connect command is executed w/o arguments.
  60. </xs:documentation>
  61. </xs:annotation>
  62. <xs:complexType>
  63. <xs:sequence>
  64. <xs:element name="host" type="xs:string" minOccurs="0" default="localhost"/>
  65. <xs:element name="port" type="xs:int" minOccurs="0" default="9999"/>
  66. </xs:sequence>
  67. </xs:complexType>
  68. </xs:element>
  69. <xs:element name="validate-operation-requests" type="xs:boolean" default="true">
  70. <xs:annotation>
  71. <xs:documentation>
  72. Indicates whether the parameter list of the operation reuqests
  73. should be validated before the requests are sent to the controller
  74. for the execution.
  75. </xs:documentation>
  76. </xs:annotation>
  77. </xs:element>
  78. <xs:element name="history">
  79. <xs:annotation>
  80. <xs:documentation>
  81. This element contains the configuration for the commands and operations history log.
  82. </xs:documentation>
  83. </xs:annotation>
  84. <xs:complexType>
  85. <xs:sequence>
  86. <xs:element name="enabled" type="xs:boolean" minOccurs="0" default="true"/>
  87. <xs:element name="file-name" type="xs:string" minOccurs="0" default=".jboss-cli-history"/>
  88. <xs:element name="file-dir" type="xs:string" minOccurs="0" default="${user.home}"/>
  89. <xs:element name="max-size" type="xs:int" minOccurs="0" default="500"/>
  90. </xs:sequence>
  91. </xs:complexType>
  92. </xs:element>
  93. <xs:element name="connection-timeout" type="xs:int" default="5000">
  94. <xs:annotation>
  95. <xs:documentation>
  96. The time allowed to establish a connection with the controller.
  97. </xs:documentation>
  98. </xs:annotation>
  99. </xs:element>
  100. <xs:element name="ssl">
  101. <xs:annotation>
  102. <xs:documentation>
  103. This element contains the configuration for the Key and Trust stores
  104. used for SSL.
  105. </xs:documentation>
  106. </xs:annotation>
  107. <xs:complexType>
  108. <xs:sequence>
  109. <xs:element name="key-store" type="xs:string" minOccurs="0" />
  110. <xs:element name="key-store-password" type="xs:string" minOccurs="0" />
  111. <xs:element name="alias" type="xs:string" minOccurs="0" />
  112. <xs:element name="key-password" type="xs:string" minOccurs="0" />
  113. <xs:element name="trust-store" type="xs:string" minOccurs="0" />
  114. <xs:element name="trust-store-password" type="xs:string" minOccurs="0" />
  115. <xs:element name="modify-trust-store" type="xs:boolean" default="true" minOccurs="0">
  116. <xs:annotation>
  117. <xs:documentation>
  118. Setting to true will cause the CLI to prompt when unrecognised certificates are received
  119. and allow them to be stored in the truststore.
  120. </xs:documentation>
  121. </xs:annotation>
  122. </xs:element>
  123. </xs:sequence>
  124. </xs:complexType>
  125. </xs:element>
  126. <xs:element name="silent" type="xs:boolean" default="false">
  127. <xs:annotation>
  128. <xs:documentation>
  129. Whether to write info and error messages to the terminal output.
  130. Even if the value is false, the messages will still be logged
  131. using the logger if its configuration allows and/or if the
  132. output target was specified as part of the command line using '>'.
  133. </xs:documentation>
  134. </xs:annotation>
  135. </xs:element>
  136. </xs:schema>