Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Fedora Ingest Service
Commits
b1da8ebe
Commit
b1da8ebe
authored
Jul 17, 2020
by
Jonas Waeber
Browse files
Fix service properties loader
parent
4443288e
Pipeline
#11697
failed with stages
in 1 minute and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/Service.kt
View file @
b1da8ebe
...
...
@@ -37,8 +37,7 @@ class Service(fileName: String = "app.yml") {
fun
createFedoraClient
(
appSettings
:
Properties
):
FedoraClient
{
return
FedoraClientImpl
.
builder
()
// FIXME: update to new version supporting method properties()
//.properties(appSettings, FEDORA_PROPERTIES_PREFIX)
.
properties
(
appSettings
,
FEDORA_PROPERTIES_PREFIX
)
.
build
()
}
}
...
...
@@ -58,11 +57,11 @@ class Service(fileName: String = "app.yml") {
private
val
log
:
Logger
=
LogManager
.
getLogger
(
"FedoraIngestService"
)
private
val
consumer
=
Consumer
(
settings
.
kafkaConsumerSettings
,
settings
.
inputTopic
)
val
consumer
=
Consumer
(
settings
.
kafkaConsumerSettings
,
settings
.
inputTopic
)
private
val
producer
=
Producer
(
settings
.
kafkaProducerSettings
,
settings
.
outputTopic
)
private
val
sftp
=
SftpClient
(
settings
.
sftpSettings
)
private
val
fedora
=
createFedoraClient
(
settings
.
appSettings
)
private
val
ingester
=
Ingester
(
producer
,
sftp
,
fedora
)
val
ingester
=
Ingester
(
producer
,
sftp
,
fedora
)
fun
run
()
{
consumer
.
use
{
consumer
->
...
...
Write
Preview
Supports
Markdown
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