Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nomad-lab-base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
nomad-lab-base
Commits
bfbc3fa6
Commit
bfbc3fa6
authored
6 years ago
by
Ihrig, Arvid Conrad (ari)
Browse files
Options
Downloads
Patches
Plain Diff
Integrated Pipeline: refactored ArchiveHandling now used in main code
parent
cbbc7eb1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
integrated-pipeline/src/main/scala/eu/nomad_lab/integrated_pipeline/Main.scala
+9
-3
9 additions, 3 deletions
...rc/main/scala/eu/nomad_lab/integrated_pipeline/Main.scala
with
9 additions
and
3 deletions
integrated-pipeline/src/main/scala/eu/nomad_lab/integrated_pipeline/Main.scala
+
9
−
3
View file @
bfbc3fa6
...
@@ -135,9 +135,15 @@ class Main {
...
@@ -135,9 +135,15 @@ class Main {
}
}
})
})
val
archiveHandler
=
new
ArchiveHandler
(
tempExtracted
)
val
archiveHandler
=
new
WholeZipArchiveHandler
(
new
ArchiveHandler
(
tempExtracted
))
val
unpacker
=
Flow
.
fromGraph
(
new
ArchiveUnpackingFlow
(
archiveHandler
))
val
unpacker
=
Flow
.
fromGraph
(
new
MessageProcessorFlow
[
TreeScanSignal
,
TreeScanSignal
]
{
val
cleanUp
=
Flow
.
fromGraph
(
new
ArchiveCleanUpFlow
(
archiveHandler
))
override
val
stageName
=
"Zip-Archive-Unpacker"
override
val
processor
=
new
ArchiveUnpacker
(
archiveHandler
)
})
val
cleanUp
=
Flow
.
fromGraph
(
new
MessageProcessorFlow
[
FileParsingSignal
,
FileParsingSignal
]
{
override
val
stageName
=
"Zip-Archive-CleanUp"
override
val
processor
=
new
ArchiveCleanUp
(
archiveHandler
)
})
val
parsing
=
CalculationParsingFlow
.
createParsingFlow
(
val
parsing
=
CalculationParsingFlow
.
createParsingFlow
(
(
1
to
params
.
numWorkers
).
map
(
i
=>
(
1
to
params
.
numWorkers
).
map
(
i
=>
new
CalculationParsingEngine
(
Main
.
parsers
,
metaInfo
,
eventProcessor
,
Some
(
f
"Worker-$i%2d"
)))
new
CalculationParsingEngine
(
Main
.
parsers
,
metaInfo
,
eventProcessor
,
Some
(
f
"Worker-$i%2d"
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment