Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
acdc
repository-extension-services
Commits
69f0f506
Commit
69f0f506
authored
Jul 23, 2018
by
bseeger
Browse files
Adds timeout to the seda recurse.
parent
ee1941b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
acrepo-exts-ore/src/main/cfg/edu.amherst.acdc.exts.ore.cfg
acrepo-exts-ore/src/main/cfg/edu.amherst.acdc.exts.ore.cfg
+2
-0
acrepo-exts-ore/src/main/java/edu/amherst/acdc/exts/ore/OreRouter.java
...re/src/main/java/edu/amherst/acdc/exts/ore/OreRouter.java
+2
-1
acrepo-exts-ore/src/main/resources/OSGI-INF/blueprint/blueprint.xml
...s-ore/src/main/resources/OSGI-INF/blueprint/blueprint.xml
+1
-0
No files found.
acrepo-exts-ore/src/main/cfg/edu.amherst.acdc.exts.ore.cfg
View file @
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
...
...
acrepo-exts-ore/src/main/java/edu/amherst/acdc/exts/ore/OreRouter.java
View file @
69f0f506
...
...
@@ -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
))
...
...
acrepo-exts-ore/src/main/resources/OSGI-INF/blueprint/blueprint.xml
View file @
69f0f506
...
...
@@ -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=
""
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment