This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.distribution.sample-0.1.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-sample.git
commit 3a5baef56fbbb2054dc32fd6297f51d8369e0095 Author: Marius Petria <[email protected]> AuthorDate: Mon Jan 5 10:40:33 2015 +0000 SLING-4009: implementing multiple queue dispatch strategy to have one queue per receiving endpoint git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/distribution/sample@1649499 13f79535-47bb-0310-9956-ffa450edef68 --- .../settings.author/agents/publish-multiple.json | 11 ++++++++ .../settings.author/agents/publish-reverse.json | 13 +++------ .../settings.author/agents/publish.json | 15 +++-------- .../settings.author/defaults/agents/forward.json | 31 ++++++++++++++++++++++ .../settings.author/defaults/agents/reverse.json | 31 ++++++++++++++++++++++ .../settings.publish/agents/reverse.json | 4 --- 6 files changed, 80 insertions(+), 25 deletions(-) diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish-multiple.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish-multiple.json new file mode 100644 index 0000000..8ee38b4 --- /dev/null +++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish-multiple.json @@ -0,0 +1,11 @@ +{ + "type" : "forward", + + "serviceName" : "distributionService", + + + "packageImporter.endpoints" : [ + "endpoint1=http://localhost:4503/libs/sling/distribution/services/importers/default", + "endpoint2=http://localhost:4503/libs/sling/distribution/services/importers/default" + ] +} \ No newline at end of file diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish-reverse.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish-reverse.json index 59996d1..3fee975 100644 --- a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish-reverse.json +++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish-reverse.json @@ -1,18 +1,11 @@ { - "type" : "simple", + "type" : "reverse", "serviceName" : "distributionService", - "packageExporter": { - "type": "remote", - "endpoints" : [ + "packageExporter.endpoints": [ "http://localhost:4503/libs/sling/distribution/services/exporters/reverse" - ] - }, - - "packageImporter": { - "type" : "local" - }, + ], "triggers" : { "scheduled" : { diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish.json index f65aaac..55c6dbc 100644 --- a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish.json +++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/agents/publish.json @@ -1,17 +1,10 @@ { - "type" : "simple", + "type" : "forward", "serviceName" : "distributionService", - "packageExporter": { - "type": "local" - }, - "packageImporter": { - "type" : "remote", - - "endpoints" : [ - "http://localhost:4503/libs/sling/distribution/services/importers/default" - ] - } + "packageImporter.endpoints" : [ + "http://localhost:4503/libs/sling/distribution/services/importers/default" + ] } \ No newline at end of file diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/defaults/agents/forward.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/defaults/agents/forward.json new file mode 100644 index 0000000..66b9a20 --- /dev/null +++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/defaults/agents/forward.json @@ -0,0 +1,31 @@ +{ + "jcr:primaryType" : "nt:unstructured", + + "kind" : "agent", + + "isResource" : "true", + + "requestAuthorizationStrategy" : { + "kind" : "requestAuthorization", + "type" : "service", + "name" : "privilegeRead" + }, + + "packageBuilder" : { + "kind" : "packageBuilder", + + "type" : "service", + "name" : "vlt" + }, + + "transportSecretProvider" : { + "kind" : "transportSecretProvider", + "type" : "service", + "name" : "publishAdmin" + }, + + "triggers" : { + "kind" : "trigger", + "type" : "list" + } +} \ No newline at end of file diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/defaults/agents/reverse.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/defaults/agents/reverse.json new file mode 100644 index 0000000..66b9a20 --- /dev/null +++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.author/defaults/agents/reverse.json @@ -0,0 +1,31 @@ +{ + "jcr:primaryType" : "nt:unstructured", + + "kind" : "agent", + + "isResource" : "true", + + "requestAuthorizationStrategy" : { + "kind" : "requestAuthorization", + "type" : "service", + "name" : "privilegeRead" + }, + + "packageBuilder" : { + "kind" : "packageBuilder", + + "type" : "service", + "name" : "vlt" + }, + + "transportSecretProvider" : { + "kind" : "transportSecretProvider", + "type" : "service", + "name" : "publishAdmin" + }, + + "triggers" : { + "kind" : "trigger", + "type" : "list" + } +} \ No newline at end of file diff --git a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/agents/reverse.json b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/agents/reverse.json index 267f3a1..79ae41f 100644 --- a/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/agents/reverse.json +++ b/src/main/resources/SLING-CONTENT/libs/sling/distribution/settings.publish/agents/reverse.json @@ -7,9 +7,5 @@ "packageExporter": { "type": "local" - }, - - "packageImporter": { - "type" : "local" } } \ No newline at end of file -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
