11#ifndef O2_FRAMEWORK_STATUSWEBSOCKETHANDLER_H_
12#define O2_FRAMEWORK_STATUSWEBSOCKETHANDLER_H_
17#include <unordered_set>
23struct DriverServerContext;
79 void headers(std::map<std::string, std::string>
const&
headers)
override;
81 void frame(
char const*
data,
size_t s)
override;
99 void sendText(std::string
const&
json);
100 void handleListMetrics(std::string_view deviceName);
101 void handleSubscribe(std::string_view deviceName, std::string_view metricsJson);
102 void handleUnsubscribe(std::string_view deviceName, std::string_view metricsJson);
103 void handleSubscribeLogs(std::string_view deviceName);
104 void handleUnsubscribeLogs(std::string_view deviceName);
105 void handleStartDevices();
106 void handleSmaps(std::string_view deviceName);
107 void handleEnableSignpost(std::string_view deviceName, std::string_view streamsArr);
108 void handleDisableSignpost(std::string_view deviceName, std::string_view streamsArr);
109 size_t findDeviceIndex(std::string_view
name)
const;
115 std::vector<std::unordered_set<std::string>> mSubscribedMetrics;
117 std::vector<size_t> mLastLogSeq;
119 std::unordered_set<size_t> mLogSubscriptions;
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
GLuint const GLchar * name
Defining ITS Vertex explicitly as messageable.
void beginFragmentation() override
FIXME: not implemented.
void control(char const *frame, size_t s) override
FIXME: not implemented.
void sendSnapshot()
Send a minimal JSON snapshot (device list + basic state, no metrics/logs).
void sendNewLogs(size_t deviceIndex)
void sendUpdate(size_t deviceIndex)
~StatusWebSocketHandler() override
void frame(char const *data, size_t s) override
Handles incoming commands from the MCP client.
void endChunk() override
Invoked whenever we have no more input to process.
void endFragmentation() override
FIXME: not implemented.
void beginChunk() override
Invoked before processing the next round of input.
void headers(std::map< std::string, std::string > const &headers) override
Sends the minimal snapshot on handshake completion.
An handler for a websocket message stream.