Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asapo
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
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab update on
10 April 7 a.m. CEST
Show more breadcrumbs
Joao Alvim Oliveira Dias De Almeida
asapo
Commits
86ac79a6
Commit
86ac79a6
authored
5 years ago
by
Carsten Patzke
Browse files
Options
Downloads
Patches
Plain Diff
[Producer] renamed receiver_address to discovery_service_endpoint
parent
560e511b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/producer/dummy-data-producer/dummy_data_producer.cpp
+4
-4
4 additions, 4 deletions
...ples/producer/dummy-data-producer/dummy_data_producer.cpp
tests/automatic/producer/beamtime_metadata/beamtime_metadata.cpp
+4
-4
4 additions, 4 deletions
...utomatic/producer/beamtime_metadata/beamtime_metadata.cpp
with
8 additions
and
8 deletions
examples/producer/dummy-data-producer/dummy_data_producer.cpp
+
4
−
4
View file @
86ac79a6
...
...
@@ -16,7 +16,7 @@ std::mutex mutex;
int
iterations_remained
;
struct
Args
{
std
::
string
receiver_address
;
std
::
string
discovery_service_endpoint
;
std
::
string
beamtime_id
;
std
::
string
stream
;
std
::
string
token
;
...
...
@@ -29,7 +29,7 @@ struct Args {
};
void
PrintCommandArguments
(
const
Args
&
args
)
{
std
::
cout
<<
"
receiver_address: "
<<
args
.
receiver_address
<<
std
::
endl
std
::
cout
<<
"
discovery_service_endpoint: "
<<
args
.
discovery_service_endpoint
<<
std
::
endl
<<
"beamtime_id: "
<<
args
.
beamtime_id
<<
std
::
endl
<<
"Package size: "
<<
args
.
number_of_bytes
/
1000
<<
"k"
<<
std
::
endl
<<
"iterations: "
<<
args
.
iterations
<<
std
::
endl
...
...
@@ -76,7 +76,7 @@ void ProcessCommandArguments(int argc, char* argv[], Args* args) {
exit
(
EXIT_FAILURE
);
}
try
{
args
->
receiver_address
=
argv
[
1
];
args
->
discovery_service_endpoint
=
argv
[
1
];
args
->
beamtime_id
=
argv
[
2
];
TryGetStreamAndToken
(
args
);
args
->
number_of_bytes
=
std
::
stoull
(
argv
[
3
])
*
1000
;
...
...
@@ -178,7 +178,7 @@ bool SendDummyData(asapo::Producer* producer, size_t number_of_byte, uint64_t it
std
::
unique_ptr
<
asapo
::
Producer
>
CreateProducer
(
const
Args
&
args
)
{
asapo
::
Error
err
;
auto
producer
=
asapo
::
Producer
::
Create
(
args
.
receiver_address
,
args
.
nthreads
,
auto
producer
=
asapo
::
Producer
::
Create
(
args
.
discovery_service_endpoint
,
args
.
nthreads
,
args
.
mode
%
10
==
0
?
asapo
::
RequestHandlerType
::
kTcp
:
asapo
::
RequestHandlerType
::
kFilesystem
,
asapo
::
SourceCredentials
{
args
.
beamtime_id
,
""
,
args
.
stream
,
args
.
token
},
3600
,
&
err
);
if
(
err
)
{
...
...
This diff is collapsed.
Click to expand it.
tests/automatic/producer/beamtime_metadata/beamtime_metadata.cpp
+
4
−
4
View file @
86ac79a6
...
...
@@ -8,13 +8,13 @@ using std::chrono::system_clock;
struct
Args
{
std
::
string
receiver_address
;
std
::
string
discovery_service_endpoint
;
std
::
string
beamtime_id
;
int
mode
;
};
void
PrintCommandArguments
(
const
Args
&
args
)
{
std
::
cout
<<
"
receiver_address: "
<<
args
.
receiver_address
<<
std
::
endl
std
::
cout
<<
"
discovery_service_endpoint: "
<<
args
.
discovery_service_endpoint
<<
std
::
endl
<<
"beamtime_id: "
<<
args
.
beamtime_id
<<
std
::
endl
<<
"mode: "
<<
args
.
mode
<<
std
::
endl
<<
std
::
endl
;
...
...
@@ -31,7 +31,7 @@ void ProcessCommandArguments(int argc, char* argv[], Args* args) {
exit
(
EXIT_FAILURE
);
}
try
{
args
->
receiver_address
=
argv
[
1
];
args
->
discovery_service_endpoint
=
argv
[
1
];
args
->
beamtime_id
=
argv
[
2
];
args
->
mode
=
std
::
stoull
(
argv
[
3
]);
PrintCommandArguments
(
*
args
);
...
...
@@ -66,7 +66,7 @@ bool SendMetaData(asapo::Producer* producer) {
std
::
unique_ptr
<
asapo
::
Producer
>
CreateProducer
(
const
Args
&
args
)
{
asapo
::
Error
err
;
auto
producer
=
asapo
::
Producer
::
Create
(
args
.
receiver_address
,
1
,
auto
producer
=
asapo
::
Producer
::
Create
(
args
.
discovery_service_endpoint
,
1
,
args
.
mode
==
0
?
asapo
::
RequestHandlerType
::
kTcp
:
asapo
::
RequestHandlerType
::
kFilesystem
,
asapo
::
SourceCredentials
{
args
.
beamtime_id
,
""
,
""
,
""
},
60
,
&
err
);
...
...
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