Project
Loading...
Searching...
No Matches
DataInspectorService.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_DATAINSPECTORSERVICE_H
12#define O2_DATAINSPECTORSERVICE_H
13
14#include <fairlogger/Logger.h>
15#include "DISocket.h"
19#include <fairmq/FairMQDevice.h>
20#include <fairmq/FairMQParts.h>
21
22namespace o2::framework
23{
24
29{
30 public:
32 DeviceSpec const& spec,
33 const std::string& address,
34 int port,
35 const std::string& runId);
37
38 void receive();
39 void send(DIMessage&& message);
40 bool isInspected() { return _isInspected; }
41
42 private:
43 void handleMessage(const DIMessage& msg);
44 void terminate();
45
46 const std::string deviceName;
47 const std::string runId;
48
49 bool _isInspected = false;
50 DISocket socket;
51
52 ServiceRegistryRef serviceRegistry;
53};
54
56 auto create() -> ServiceSpec* final;
57};
58} // namespace o2::framework
59
60#endif // O2_DATAINSPECTORSERVICE_H
GLuint GLuint64EXT address
Definition glcorearb.h:5846
GLuint GLsizei const GLchar * message
Definition glcorearb.h:2517
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
auto create() -> ServiceSpec *final
uint64_t const void const *restrict const msg
Definition x9.h:153