Project
Loading...
Searching...
No Matches
ChannelSpec.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
#ifndef O2_FRAMEWORK_CHANNELSPEC_H_
12
#define O2_FRAMEWORK_CHANNELSPEC_H_
13
14
#include <string>
15
16
namespace
o2::framework
17
{
18
21
enum struct
ChannelMethod
{
22
Bind
,
23
Connect
24
};
25
27
enum struct
ChannelType
{
28
Pub
,
29
Sub
,
30
Push
,
31
Pull
,
32
Pair
33
};
34
36
enum struct
ChannelProtocol
{
37
Network
,
38
IPC
39
};
40
45
struct
InputChannelSpec
{
46
std::string
name
;
47
enum
ChannelType
type
;
48
enum
ChannelMethod
method
;
49
std::string
hostname
;
50
unsigned
short
port
;
51
ChannelProtocol
protocol
=
ChannelProtocol::Network
;
52
size_t
rateLogging
= 0;
53
size_t
recvBufferSize
= 1000;
54
size_t
sendBufferSize
= 1000;
55
std::string
ipcPrefix
=
"."
;
56
};
57
63
struct
OutputChannelSpec
{
64
std::string
name
;
65
enum
ChannelType
type
;
66
enum
ChannelMethod
method
;
67
std::string
hostname
;
68
unsigned
short
port
;
69
size_t
listeners
;
70
ChannelProtocol
protocol
=
ChannelProtocol::Network
;
71
size_t
rateLogging
= 0;
72
size_t
recvBufferSize
= 1000;
73
size_t
sendBufferSize
= 1000;
74
std::string
ipcPrefix
=
"."
;
75
};
76
77
}
// namespace o2::framework
78
79
#endif
// O2_FRAMEWORK_CHANNELSPEC_H_
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::ChannelMethod
ChannelMethod
Definition
ChannelSpec.h:21
o2::framework::ChannelMethod::Bind
@ Bind
o2::framework::ChannelMethod::Connect
@ Connect
o2::framework::ChannelProtocol
ChannelProtocol
The kind of backend to use for the channels.
Definition
ChannelSpec.h:36
o2::framework::ChannelProtocol::IPC
@ IPC
o2::framework::ChannelProtocol::Network
@ Network
o2::framework::InputChannelState::Pull
@ Pull
o2::framework::ChannelType
ChannelType
These map to zeromq types for the channels.
Definition
ChannelSpec.h:27
o2::framework::ChannelType::Push
@ Push
o2::framework::ChannelType::Pub
@ Pub
o2::framework::ChannelType::Sub
@ Sub
o2::framework::GroupedCombinationsGenerator
Definition
GroupedCombinations.h:51
o2::framework::InputChannelSpec
Definition
ChannelSpec.h:45
o2::framework::InputChannelSpec::sendBufferSize
size_t sendBufferSize
Definition
ChannelSpec.h:54
o2::framework::InputChannelSpec::method
enum ChannelMethod method
Definition
ChannelSpec.h:48
o2::framework::InputChannelSpec::protocol
ChannelProtocol protocol
Definition
ChannelSpec.h:51
o2::framework::InputChannelSpec::type
enum ChannelType type
Definition
ChannelSpec.h:47
o2::framework::InputChannelSpec::port
unsigned short port
Definition
ChannelSpec.h:50
o2::framework::InputChannelSpec::rateLogging
size_t rateLogging
Definition
ChannelSpec.h:52
o2::framework::InputChannelSpec::recvBufferSize
size_t recvBufferSize
Definition
ChannelSpec.h:53
o2::framework::InputChannelSpec::ipcPrefix
std::string ipcPrefix
Definition
ChannelSpec.h:55
o2::framework::InputChannelSpec::hostname
std::string hostname
Definition
ChannelSpec.h:49
o2::framework::InputChannelSpec::name
std::string name
Definition
ChannelSpec.h:46
o2::framework::OutputChannelSpec
Definition
ChannelSpec.h:63
o2::framework::OutputChannelSpec::protocol
ChannelProtocol protocol
Definition
ChannelSpec.h:70
o2::framework::OutputChannelSpec::hostname
std::string hostname
Definition
ChannelSpec.h:67
o2::framework::OutputChannelSpec::listeners
size_t listeners
Definition
ChannelSpec.h:69
o2::framework::OutputChannelSpec::method
enum ChannelMethod method
Definition
ChannelSpec.h:66
o2::framework::OutputChannelSpec::rateLogging
size_t rateLogging
Definition
ChannelSpec.h:71
o2::framework::OutputChannelSpec::sendBufferSize
size_t sendBufferSize
Definition
ChannelSpec.h:73
o2::framework::OutputChannelSpec::recvBufferSize
size_t recvBufferSize
Definition
ChannelSpec.h:72
o2::framework::OutputChannelSpec::name
std::string name
Definition
ChannelSpec.h:64
o2::framework::OutputChannelSpec::port
unsigned short port
Definition
ChannelSpec.h:68
o2::framework::OutputChannelSpec::type
enum ChannelType type
Definition
ChannelSpec.h:65
o2::framework::OutputChannelSpec::ipcPrefix
std::string ipcPrefix
Definition
ChannelSpec.h:74
Framework
Core
include
Framework
ChannelSpec.h
Generated on Tue Feb 25 2025 17:03:19 for Project by
1.9.8