Mark failed connections dead with a retry interval to avoid pool churn.
[java-idp.git] / src / schemas / shibboleth-resolver-1.0.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema targetNamespace="urn:mace:shibboleth:resolver:1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:resolver="urn:mace:shibboleth:resolver:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
3         <xs:element name="AttributeResolver">
4                 <xs:complexType>
5                         <xs:choice minOccurs="1" maxOccurs="unbounded">
6                                 <xs:element name="SimpleAttributeDefinition" minOccurs="0" maxOccurs="unbounded">
7                                         <xs:complexType>
8                                                 <xs:complexContent>
9                                                         <xs:extension base="resolver:BaseAttributeDefinition">
10                                                                 <xs:attribute name="sourceName" type="xs:string" use="optional"/>
11                                                                 <xs:attribute name="smartScope" type="xs:string" use="optional"/>
12                                                                 <xs:attribute name="valueHandler" type="xs:string" use="optional"/>
13                                                         </xs:extension>
14                                                 </xs:complexContent>
15                                         </xs:complexType>
16                                 </xs:element>
17                                 <xs:element name="PersistentIDAttributeDefinition" minOccurs="0" maxOccurs="unbounded">
18                                         <xs:complexType>
19                                                 <xs:complexContent>
20                                                         <xs:extension base="resolver:BaseAttributeDefinition">
21                                                                 <xs:sequence>
22                                                                         <xs:element name="Salt">
23                                                                                 <xs:complexType>
24                                                                                         <xs:simpleContent>
25                                                                                                 <xs:extension base="xs:string">
26                                                                                                         <xs:attribute name="keyStorePath" type="xs:string" use="optional"/>
27                                                                                                         <xs:attribute name="keyStoreKeyAlias" type="xs:string" use="optional"/>
28                                                                                                         <xs:attribute name="keyStorePassword" type="xs:string" use="optional"/>
29                                                                                                         <xs:attribute name="keyStoreKeyPassword" type="xs:string" use="optional"/>
30                                                                                                 </xs:extension>
31                                                                                         </xs:simpleContent>
32                                                                                 </xs:complexType>
33                                                                         </xs:element>
34                                                                 </xs:sequence>
35                                                                 <xs:attribute name="sourceName" type="xs:string" use="optional"/>
36                                                                 <xs:attribute name="scope" type="xs:string" use="required"/>
37                                                         </xs:extension>
38                                                 </xs:complexContent>
39                                         </xs:complexType>
40                                 </xs:element>
41                                 <xs:element name="CustomAttributeDefinition" minOccurs="0" maxOccurs="unbounded">
42                                         <xs:complexType>
43                                                 <xs:complexContent>
44                                                         <xs:extension base="resolver:BaseAttributeDefinition">
45                                                                 <xs:sequence minOccurs="0" maxOccurs="unbounded">
46                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
47                                                                 </xs:sequence>
48                                                                 <xs:attribute name="class" type="xs:string" use="required"/>
49                                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
50                                                         </xs:extension>
51                                                 </xs:complexContent>
52                                         </xs:complexType>
53                                 </xs:element>
54                                 <xs:element name="CustomDataConnector" minOccurs="0" maxOccurs="unbounded">
55                                         <xs:complexType>
56                                                 <xs:complexContent>
57                                                         <xs:extension base="resolver:BaseDataConnector">
58                                                                 <xs:sequence>
59                                                                         <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
60                                                                 </xs:sequence>
61                                                                 <xs:attribute name="class" type="xs:string" use="required"/>
62                                                                 <xs:anyAttribute namespace="##any" processContents="lax"/>
63                                                         </xs:extension>
64                                                 </xs:complexContent>
65                                         </xs:complexType>
66                                 </xs:element>
67                                 <xs:element name="JNDIDirectoryDataConnector" minOccurs="0" maxOccurs="unbounded">
68                                         <xs:complexType>
69                                                 <xs:complexContent>
70                                                         <xs:extension base="resolver:BaseDataConnector">
71                                                                 <xs:sequence>
72                                                                         <xs:element name="Search">
73                                                                                 <xs:complexType>
74                                                                                         <xs:sequence minOccurs="0">
75                                                                                                 <xs:element name="Controls">
76                                                                                                         <xs:complexType>
77                                                                                                                 <xs:attribute name="searchScope" type="xs:string" use="optional"/>
78                                                                                                                 <xs:attribute name="timeLimit" type="xs:int" use="optional"/>
79                                                                                                                 <xs:attribute name="returningObjects" type="xs:boolean" use="optional"/>
80                                                                                                                 <xs:attribute name="linkDereferencing" type="xs:boolean" use="optional"/>
81                                                                                                                 <xs:attribute name="countLimit" type="xs:long" use="optional"/>
82                                                                                                         </xs:complexType>
83                                                                                                 </xs:element>
84                                                                                         </xs:sequence>
85                                                                                         <xs:attribute name="filter" type="xs:string" use="required"/>
86                                                                                 </xs:complexType>
87                                                                         </xs:element>
88                                                                         <xs:element name="Property" maxOccurs="unbounded">
89                                                                                 <xs:complexType>
90                                                                                         <xs:attribute name="name" type="xs:string" use="required"/>
91                                                                                         <xs:attribute name="value" type="xs:string" use="required"/>
92                                                                                 </xs:complexType>
93                                                                         </xs:element>
94                                                                 </xs:sequence>
95                                                         </xs:extension>
96                                                 </xs:complexContent>
97                                         </xs:complexType>
98                                 </xs:element>
99                                 <xs:element name="JDBCDataConnector" minOccurs="0" maxOccurs="unbounded">
100                                         <xs:complexType>
101                                                 <xs:complexContent>
102                                                         <xs:extension base="resolver:BaseDataConnector">
103                                                                 <xs:sequence>
104                                                                         <xs:element name="Query" type="xs:string"/>
105                                                                         <xs:element name="AttributeExtractor" minOccurs="0">
106                                                                                 <xs:complexType>
107                                                                                         <xs:attribute name="class" type="xs:string" use="required"/>
108                                                                                 </xs:complexType>
109                                                                         </xs:element>
110                                                                         <xs:element name="StatementCreator" minOccurs="0">
111                                                                                 <xs:complexType>
112                                                                                         <xs:sequence minOccurs="0" maxOccurs="unbounded">
113                                                                                                 <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
114                                                                                         </xs:sequence>
115                                                                                         <xs:attribute name="class" type="xs:string" use="required"/>
116                                                                                         <xs:anyAttribute namespace="##any" processContents="lax"/>
117                                                                                 </xs:complexType>
118                                                                         </xs:element>
119                                                                         <xs:element name="Property" minOccurs="0" maxOccurs="unbounded">
120                                                                                 <xs:complexType>
121                                                                                         <xs:attribute name="name" type="xs:string" use="required"/>
122                                                                                         <xs:attribute name="value" type="xs:string" use="required"/>
123                                                                                 </xs:complexType>
124                                                                         </xs:element>
125                                                                 </xs:sequence>
126                                                                 <xs:attribute name="dbURL" type="xs:string" use="required"/>
127                                                                 <xs:attribute name="dbDriver" type="xs:string" use="optional"/>
128                                                                 <xs:attribute name="validationQuery" type="xs:string" use="optional" default="select 1"/>
129                                                                 <xs:attribute name="maxActive" type="xs:integer" use="optional"/>
130                                                                 <xs:attribute name="maxIdle" type="xs:integer" use="optional"/>
131                                                                 <xs:attribute name="maxWait" type="xs:integer" use="optional"/>
132                                                                 <xs:attribute name="minResultSet" type="xs:integer" use="optional"/>
133                                                                 <xs:attribute name="maxResultSet" type="xs:integer" use="optional"/>
134                                                                 <xs:attribute name="retryInterval" type="xs:integer" use="optional"/>
135                                                         </xs:extension>
136                                                 </xs:complexContent>
137                                         </xs:complexType>
138                                 </xs:element>
139                         </xs:choice>
140                 </xs:complexType>
141         </xs:element>
142         <xs:complexType name="BaseAttributeDefinition">
143                 <xs:complexContent>
144                         <xs:extension base="resolver:BaseResolutionPlugIn">
145                                 <xs:attribute name="lifeTime" type="xs:long" use="optional"/>
146                         </xs:extension>
147                 </xs:complexContent>
148         </xs:complexType>
149         <xs:complexType name="BaseDataConnector">
150                 <xs:complexContent>
151                         <xs:extension base="resolver:BaseResolutionPlugIn">
152                                 <xs:sequence>
153                                         <xs:element name="FailoverDependency" minOccurs="0">
154                                                 <xs:complexType>
155                                                         <xs:attribute name="requires" type="xs:string" use="required"/>
156                                                 </xs:complexType>
157                                         </xs:element>
158                                 </xs:sequence>
159                         </xs:extension>
160                 </xs:complexContent>
161         </xs:complexType>
162         <xs:complexType name="BaseResolutionPlugIn">
163                 <xs:choice minOccurs="0" maxOccurs="unbounded">
164                         <xs:element name="DataConnectorDependency">
165                                 <xs:complexType>
166                                         <xs:attribute name="requires" type="xs:string" use="required"/>
167                                 </xs:complexType>
168                         </xs:element>
169                         <xs:element name="AttributeDependency">
170                                 <xs:complexType>
171                                         <xs:attribute name="requires" type="xs:string" use="required"/>
172                                 </xs:complexType>
173                         </xs:element>
174                 </xs:choice>
175                 <xs:attribute name="id" type="xs:string" use="required"/>
176                 <xs:attribute name="cacheTime" type="xs:string" use="optional"/>
177                 <xs:attribute name="propagateErrors" type="xs:boolean" use="optional" default="true"/>
178         </xs:complexType>
179 </xs:schema>