summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/resources/schema/federation.rnc
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
commit72231250ed81e10d66bfe70701e64fa5fe50f712 (patch)
tree2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /config-model/src/main/resources/schema/federation.rnc
Publish
Diffstat (limited to 'config-model/src/main/resources/schema/federation.rnc')
-rw-r--r--config-model/src/main/resources/schema/federation.rnc73
1 files changed, 73 insertions, 0 deletions
diff --git a/config-model/src/main/resources/schema/federation.rnc b/config-model/src/main/resources/schema/federation.rnc
new file mode 100644
index 00000000000..81933cc0622
--- /dev/null
+++ b/config-model/src/main/resources/schema/federation.rnc
@@ -0,0 +1,73 @@
+# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+# Schema for federation configuration inside the searchchains section.
+
+GenericSource =
+ GenericSearchChainInQrservers &
+ FederationOptions?
+
+Source =
+ element source {
+ GenericSource
+ }
+
+Provider =
+ element provider {
+ GenericSource &
+ attribute cachesize { xsd:string { pattern = "\d+(\.\d*)?\s*[kmgKMG]?" } }? &
+ attribute type { xsd:string }? &
+ attribute cluster { xsd:string }? &
+ attribute yca-application-id { xsd:string }? &
+ attribute yca-cache-ttl { xsd:string { pattern = "\d+(\.\d*)?\s*m?s" } }? &
+ attribute yca-cache-retry-wait { xsd:string { pattern = "\d+(\.\d*)?\s*m?s" } }? &
+ YcaProxy? &
+ HttpProviderSearcherOptions &
+
+ Source*
+ }
+
+YcaProxy =
+ element yca-proxy {
+ GenericNode?
+ }
+
+GenericNode =
+ attribute host { xsd:string } &
+ attribute port { xsd:int }
+
+
+HttpProviderSearcherOptions =
+ attribute cacheweight { xsd:float { minInclusive = "0" } }? &
+ attribute path { xsd:string }? &
+ attribute readtimeout { xsd:string { pattern = "\d+(\.\d*)?\s*m?s" } }? &
+ attribute connectiontimeout { xsd:string { pattern = "\d+(\.\d*)?\s*m?s" } }? &
+ attribute connectionpooltimeout { xsd:string { pattern = "\d+(\.\d*)?\s*m?s" } }? &
+ attribute retries { xsd:int }? &
+ element nodes {
+ element node {
+ attribute host { xsd:string } &
+ attribute port { xsd:int }
+ }+
+ } ?
+
+FederationOptions =
+ element federationoptions {
+ attribute optional { xsd:boolean }? &
+ attribute timeout { xsd:string { pattern = "\d+(\.\d*)?\s*m?s" } }? &
+ attribute requestTimeout { xsd:string { pattern = "\d+(\.\d*)?\s*m?s" } }? &
+ attribute default { xsd:boolean }?
+ }
+
+FederationSearcher =
+ element federation {
+ GenericSearcherOrDocumentProcessor &
+ element source {
+ ComponentSpec &
+ FederationOptions?
+ }* &
+ element target-selector {
+ ComponentDefinition
+ }? &
+ element source-set {
+ attribute inherits {"default"}
+ }?
+ }