16 #ifndef __Glacier2_Metrics_h__
17 #define __Glacier2_Metrics_h__
40 #ifndef ICE_IGNORE_VERSION
41 # if ICE_INT_VERSION / 100 != 307
42 # error Ice version mismatch!
44 # if ICE_INT_VERSION % 100 >= 50
45 # error Beta header file detected
47 # if ICE_INT_VERSION % 100 < 10
48 # error Ice patch level mismatch!
53 # if defined(ICE_STATIC_LIBS)
55 # elif defined(GLACIER2_API_EXPORTS)
56 # define GLACIER2_API ICE_DECLSPEC_EXPORT
58 # define GLACIER2_API ICE_DECLSPEC_IMPORT
62 #ifdef ICE_CPP11_MAPPING // C++11 mapping
78 class ICE_CLASS(GLACIER2_API) SessionMetrics :
public ::Ice::ValueHelper<SessionMetrics, Metrics>
84 SessionMetrics() =
default;
86 SessionMetrics(
const SessionMetrics&) =
default;
87 SessionMetrics(SessionMetrics&&) =
default;
88 SessionMetrics& operator=(
const SessionMetrics&) =
default;
89 SessionMetrics& operator=(SessionMetrics&&) =
default;
106 SessionMetrics(const ::std::string&
id,
long long int total,
int current,
long long int totalLifetime,
int failures,
int forwardedClient,
int forwardedServer,
int routingTableSize,
int queuedClient,
int queuedServer,
int overriddenClient,
int overriddenServer) :
107 Ice::ValueHelper<SessionMetrics, Metrics>(id, total, current, totalLifetime, failures),
108 forwardedClient(forwardedClient),
109 forwardedServer(forwardedServer),
110 routingTableSize(routingTableSize),
111 queuedClient(queuedClient),
112 queuedServer(queuedServer),
113 overriddenClient(overriddenClient),
114 overriddenServer(overriddenServer)
122 std::tuple<const ::std::string&, const long long int&, const int&, const long long int&, const int&, const int&, const int&, const int&, const int&, const int&, const int&, const int&> ice_tuple()
const
124 return std::tie(
id, total, current, totalLifetime, failures, forwardedClient, forwardedServer, routingTableSize, queuedClient, queuedServer, overriddenClient, overriddenServer);
136 int forwardedClient = 0;
140 int forwardedServer = 0;
144 int routingTableSize = 0;
148 int queuedClient = 0;
152 int queuedServer = 0;
156 int overriddenClient = 0;
160 int overriddenServer = 0;
164 static SessionMetrics _iceS_SessionMetrics_init;
181 static void write(S* ostr, const ::IceMX::SessionMetrics& v)
183 ostr->writeAll(v.forwardedClient, v.forwardedServer, v.routingTableSize, v.queuedClient, v.queuedServer, v.overriddenClient, v.overriddenServer);
208 #else // C++98 mapping
317 SessionMetrics(const ::std::string&
id, ::
Ice::Long total, ::
Ice::Int current, ::
Ice::Long totalLifetime, ::
Ice::Int failures, ::
Ice::Int forwardedClient, ::
Ice::Int forwardedServer, ::
Ice::Int routingTableSize, ::
Ice::Int queuedClient, ::
Ice::Int queuedServer, ::
Ice::Int overriddenClient, ::
Ice::Int overriddenServer) :
318 ::
IceMX::
Metrics(id, total, current, totalLifetime, failures),
319 forwardedClient(forwardedClient),
320 forwardedServer(forwardedServer),
321 routingTableSize(routingTableSize),
322 queuedClient(queuedClient),
323 queuedServer(queuedServer),
324 overriddenClient(overriddenClient),
325 overriddenServer(overriddenServer)
329 #ifdef ICE_CPP11_COMPILER
422 inline bool operator<(
const SessionMetrics& lhs,
const SessionMetrics& rhs)
437 static void write(S* ostr, const ::IceMX::SessionMetrics& v)
439 ostr->write(v.forwardedClient);
440 ostr->write(v.forwardedServer);
441 ostr->write(v.routingTableSize);
442 ostr->write(v.queuedClient);
443 ostr->write(v.queuedServer);
444 ostr->write(v.overriddenClient);
445 ostr->write(v.overriddenServer);