40 process(
const EMANERemoteControlPortAPI::Request::Update::StatisticClear & statisticClear,
41 std::uint32_t u32Sequence,
42 std::uint32_t u32Reference)
44 std::vector<std::string> names;
46 for(
int i = 0; i < statisticClear.names_size(); ++i)
48 names.push_back(statisticClear.names(i));
57 response.set_type(EMANERemoteControlPortAPI::Response::TYPE_RESPONSE_UPDATE);
59 auto pUpdate = response.mutable_update();
65 response.set_type(EMANERemoteControlPortAPI::Response::TYPE_RESPONSE_ERROR);
67 auto pError = response.mutable_error();
69 pError->set_type(EMANERemoteControlPortAPI::Response::Error::TYPE_ERROR_PARAMETER);
71 pError->set_description(exp.
what());
74 response.set_reference(u32Reference);
76 response.set_sequence(u32Sequence);
78 std::string sSerialization;
80 if(!response.SerializeToString(&sSerialization))
85 return sSerialization;
SerializationException is thrown when an exception occurs during serialization or deserialization of ...
void clearStatistic(BuildId, const std::vector< std::string > &names) const
const char * what() const
static std::string process(const EMANERemoteControlPortAPI::Request::Update::StatisticClear &statisticClear, std::uint32_t u32Sequence, std::uint32_t u32Reference)
int TYPE_UPDATE_STATISTICCLEAR
RegistrarException is thrown when an exception occurs during registration.
static StatisticService * instance()