Commit d5e9af36 authored by acoburn's avatar acoburn
Browse files

Merge branch 'add_timeout_seda_ore' into 'master'

Adds timeout to the seda recurse.

See merge request !100
parents a102d590 69f0f506
......@@ -5,6 +5,8 @@ rest.prefix=/ore
# Concurrency level (this MUST be > 1)
ore.concurrency=10
# seda timeout (milliseconds) (0 = disabled)
ore.timeout=30000
# Repository Base URL (it MUST start with http:// or https://)
fcrepo.baseUrl=http://localhost:8080/fcrepo/rest
......
......@@ -75,7 +75,8 @@ public class OreRouter extends RouteBuilder {
})
.to("direct:serialize");
from("seda:recurse?concurrentConsumers={{ore.concurrency}}").routeId("OreBuildRecursive")
from("seda:recurse?concurrentConsumers={{ore.concurrency}}&timeout={{ore.timeout}}")
.routeId("OreBuildRecursive")
.setHeader(FCREPO_URI, body())
.to("direct:getResource")
.filter(header(HTTP_RESPONSE_CODE).isEqualTo(200))
......
......@@ -14,6 +14,7 @@
<cm:property name="rest.prefix" value="/ore"/>
<cm:property name="rest.host" value="localhost"/>
<cm:property name="ore.concurrency" value="10"/>
<cm:property name="ore.timeout" value="30000"/>
<cm:property name="fcrepo.baseUrl" value="http://localhost:8080/fcrepo/rest"/>
<cm:property name="fcrepo.authUsername" value=""/>
<cm:property name="fcrepo.authPassword" value=""/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment