Project
Loading...
Searching...
No Matches
ControlWebSocketHandler.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_CONTROLWEBSOCKETHANDLER_H_
12#define O2_FRAMEWORK_CONTROLWEBSOCKETHANDLER_H_
13#include "HTTPParser.h"
15#include <map>
16#include <string>
17
18namespace o2::framework
19{
20struct DriverServerContext;
21
25 ~ControlWebSocketHandler() override = default;
26
33 void headers(std::map<std::string, std::string> const& headers) override;
34
36 void beginFragmentation() override {}
37
40 void frame(char const* frame, size_t s) override;
41
43 void endFragmentation() override{};
45 void control(char const* frame, size_t s) override{};
46
49 void beginChunk() override
50 {
51 didProcessMetric = false;
52 didHaveNewMetric = false;
53 }
54
58 void endChunk() override;
59
66 pid_t mPid = 0;
68 size_t mIndex = (size_t)-1;
71 bool didProcessMetric = false;
72 bool didHaveNewMetric = false;
73};
74
75} // namespace o2::framework
76#endif // O2_FRAMEWORK_CONTROLWEBSOCKETHANDLER_H_
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
An handler for a websocket message stream.
size_t mIndex
The index of the remote process associated to this handler.
void endFragmentation() override
FIXME: not implemented.
void headers(std::map< std::string, std::string > const &headers) override
void beginFragmentation() override
FIXME: not implemented by the backend.
~ControlWebSocketHandler() override=default
void frame(char const *frame, size_t s) override
void control(char const *frame, size_t s) override
FIXME: not implemented.
An handler for a websocket message stream.
Definition HTTPParser.h:149