Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Astri MA Processor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
BIAS
Processors
Astri MA Processor
Commits
c84de93f
Commit
c84de93f
authored
1 year ago
by
Valerio Pastore
Browse files
Options
Downloads
Patches
Plain Diff
added mysql conf
parent
d3d60556
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
deps/Kafka-Avro-Provider
+1
-1
1 addition, 1 deletion
deps/Kafka-Avro-Provider
deps/Redis_Receiver
+1
-1
1 addition, 1 deletion
deps/Redis_Receiver
deps/Yaml-Configurator
+1
-1
1 addition, 1 deletion
deps/Yaml-Configurator
src/main.cpp
+5
-1
5 additions, 1 deletion
src/main.cpp
with
8 additions
and
4 deletions
Kafka-Avro-Provider
@
de1227d4
Compare
6f973fc4
...
de1227d4
Subproject commit
6f973fc47b6b012dba5e7e490abd993d911698e2
Subproject commit
de1227d479c7558641f67b05d0c01ec7d7c98516
This diff is collapsed.
Click to expand it.
Redis_Receiver
@
51b205f9
Compare
caeb5c2e
...
51b205f9
Subproject commit
caeb5c2e46135ae6bf750c9bd6b8d62f02fcfd85
Subproject commit
51b205f90307e755c098b498889ad3835cf2bd70
This diff is collapsed.
Click to expand it.
Yaml-Configurator
@
1f71f6d5
Compare
c9c9b52d
...
1f71f6d5
Subproject commit
c9c9b52d62d6548dfc12344c3f94d50fccb1f43a
Subproject commit
1f71f6d578ae129d326370d1f04fcda7a51102b4
This diff is collapsed.
Click to expand it.
src/main.cpp
+
5
−
1
View file @
c84de93f
...
...
@@ -41,14 +41,18 @@ int main(int argc, char **argv) {
///////// PROCS CONF -------------------------------------------------------------------------------------------------
Configurators
::
YamlConfigurator
procsyamlconf
(
std
::
string
(
ASTRIPROC_CONFIG_PATH
).
append
(
"/config.yaml"
));
Configurators
::
MysqlConfigurator
mysqlConf
(
"127.0.0.1"
,
3306
,
"bias"
,
"BIAS1ast01$1"
,
"BIAS"
);
Configurators
::
CLConfigurator
clConf
(
argc
,
argv
);
procs
=
Processors
::
AstriMaProcBuilder
().
configFrom
(
procsyamlconf
)
->
configFrom
(
clConf
)
->
getProcessor
();
mysqlConf
)
->
configFrom
(
clConf
)
->
getProcessor
();
std
::
map
<
std
::
string
,
std
::
string
>
procsConf
;
for
(
auto
[
k
,
v
]
:
procsyamlconf
.
getConfig
())
procsConf
[
k
]
=
v
;
for
(
auto
[
k
,
v
]
:
mysqlConf
.
getConfig
())
procsConf
[
k
]
=
v
;
for
(
auto
[
k
,
v
]
:
clConf
.
getConfig
())
procsConf
[
k
]
=
v
;
...
...
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