Ice 3.7 C++11 API Reference
Loading...
Searching...
No Matches
Metrics.h
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4//
5// Ice version 3.7.11
6//
7// <auto-generated>
8//
9// Generated from file `Metrics.ice'
10//
11// Warning: do not edit this file.
12//
13// </auto-generated>
14//
15
16#ifndef __Glacier2_Metrics_h__
17#define __Glacier2_Metrics_h__
18
20#include <Ice/ProxyF.h>
21#include <Ice/ObjectF.h>
22#include <Ice/ValueF.h>
23#include <Ice/Exception.h>
24#include <Ice/LocalObject.h>
25#include <Ice/StreamHelpers.h>
26#include <Ice/Comparable.h>
27#include <Ice/Proxy.h>
28#include <Ice/Object.h>
29#include <Ice/GCObject.h>
30#include <Ice/Value.h>
31#include <Ice/Incoming.h>
33#include <IceUtil/ScopedArray.h>
34#include <Ice/Optional.h>
36#include <Ice/Metrics.h>
38#include <Glacier2/Config.h>
39
40#ifndef ICE_IGNORE_VERSION
41# if ICE_INT_VERSION / 100 != 307
42# error Ice version mismatch!
43# endif
44# if ICE_INT_VERSION % 100 >= 50
45# error Beta header file detected
46# endif
47# if ICE_INT_VERSION % 100 < 11
48# error Ice patch level mismatch!
49# endif
50#endif
51
52#ifndef GLACIER2_API
53# if defined(ICE_STATIC_LIBS)
54# define GLACIER2_API /**/
55# elif defined(GLACIER2_API_EXPORTS)
56# define GLACIER2_API ICE_DECLSPEC_EXPORT
57# else
58# define GLACIER2_API ICE_DECLSPEC_IMPORT
59# endif
60#endif
61
62#ifdef ICE_CPP11_MAPPING // C++11 mapping
63
64namespace IceMX
65{
66
67class SessionMetrics;
68
69}
70
71namespace IceMX
72{
73
78class ICE_CLASS(GLACIER2_API) SessionMetrics : public ::Ice::ValueHelper<SessionMetrics, Metrics>
79{
80public:
81
83
84 SessionMetrics() = default;
85
86 SessionMetrics(const SessionMetrics&) = default;
90
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),
115 {
116 }
117
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
123 {
124 return std::tie(id, total, current, totalLifetime, failures, forwardedClient, forwardedServer, routingTableSize, queuedClient, queuedServer, overriddenClient, overriddenServer);
125 }
126
131 ICE_MEMBER(GLACIER2_API) static const ::std::string& ice_staticId();
132
161};
162
164static SessionMetrics _iceS_SessionMetrics_init;
166
167}
168
169namespace IceMX
170{
171
172}
173
175namespace Ice
176{
177
178template<typename S>
179struct StreamWriter<::IceMX::SessionMetrics, S>
180{
181 static void write(S* ostr, const ::IceMX::SessionMetrics& v)
182 {
183 ostr->writeAll(v.forwardedClient, v.forwardedServer, v.routingTableSize, v.queuedClient, v.queuedServer, v.overriddenClient, v.overriddenServer);
184 }
185};
186
187template<typename S>
188struct StreamReader<::IceMX::SessionMetrics, S>
189{
190 static void read(S* istr, ::IceMX::SessionMetrics& v)
191 {
193 }
194};
195
196}
198
200namespace IceMX
201{
202
203using SessionMetricsPtr = ::std::shared_ptr<SessionMetrics>;
204
205}
207
208#else // C++98 mapping
209
210namespace IceProxy
211{
212
213namespace IceMX
214{
215
216class SessionMetrics;
218GLACIER2_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< SessionMetrics>&);
219GLACIER2_API ::IceProxy::Ice::Object* upCast(SessionMetrics*);
221
222}
223
224}
225
226namespace IceMX
227{
228
229class SessionMetrics;
231GLACIER2_API ::Ice::Object* upCast(SessionMetrics*);
233typedef ::IceInternal::Handle< SessionMetrics> SessionMetricsPtr;
234typedef ::IceInternal::ProxyHandle< ::IceProxy::IceMX::SessionMetrics> SessionMetricsPrx;
235typedef SessionMetricsPrx SessionMetricsPrxPtr;
237GLACIER2_API void _icePatchObjectPtr(SessionMetricsPtr&, const ::Ice::ObjectPtr&);
239
240}
241
242namespace IceMX
243{
244
245}
246
247namespace IceProxy
248{
249
250namespace IceMX
251{
252
253class ICE_CLASS(GLACIER2_API) SessionMetrics : public virtual ::Ice::Proxy<SessionMetrics, ::IceProxy::IceMX::Metrics>
254{
255public:
256
261 ICE_MEMBER(GLACIER2_API) static const ::std::string& ice_staticId();
262
263protected:
265
266 ICE_MEMBER(GLACIER2_API) virtual ::IceProxy::Ice::Object* _newInstance() const;
268};
269
270}
271
272}
273
274namespace IceMX
275{
276
281class GLACIER2_API SessionMetrics : public Metrics
282{
283public:
284
285 typedef SessionMetricsPrx ProxyType;
286 typedef SessionMetricsPtr PointerType;
287
288 virtual ~SessionMetrics();
289
291 SessionMetrics() :
292 forwardedClient(0),
293 forwardedServer(0),
294 routingTableSize(0),
295 queuedClient(0),
296 queuedServer(0),
297 overriddenClient(0),
298 overriddenServer(0)
299 {
300 }
301
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)
326 {
327 }
328
329#ifdef ICE_CPP11_COMPILER
330 SessionMetrics(const SessionMetrics&) = default;
331 SessionMetrics& operator=(const SessionMetrics&) = default;
332#endif
333
338 virtual ::Ice::ObjectPtr ice_clone() const;
339
346 virtual bool ice_isA(const ::std::string& id, const ::Ice::Current& current = ::Ice::emptyCurrent) const;
347
353 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
354
360 virtual const ::std::string& ice_id(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
361
366 static const ::std::string& ice_staticId();
367
372 static ::Ice::ValueFactoryPtr ice_factory();
373
374protected:
375
377 virtual void _iceWriteImpl(::Ice::OutputStream*) const;
378 virtual void _iceReadImpl(::Ice::InputStream*);
380
381public:
382
386 ::Ice::Int forwardedClient;
390 ::Ice::Int forwardedServer;
394 ::Ice::Int routingTableSize;
398 ::Ice::Int queuedClient;
402 ::Ice::Int queuedServer;
406 ::Ice::Int overriddenClient;
410 ::Ice::Int overriddenServer;
411};
413static ::Ice::ValueFactoryPtr _iceS_SessionMetrics_init = ::IceMX::SessionMetrics::ice_factory();
415
417inline bool operator==(const SessionMetrics& lhs, const SessionMetrics& rhs)
418{
419 return static_cast<const ::Ice::Object&>(lhs) == static_cast<const ::Ice::Object&>(rhs);
420}
421
422inline bool operator<(const SessionMetrics& lhs, const SessionMetrics& rhs)
423{
424 return static_cast<const ::Ice::Object&>(lhs) < static_cast<const ::Ice::Object&>(rhs);
425}
427
428}
429
431namespace Ice
432{
433
434template<typename S>
435struct StreamWriter< ::IceMX::SessionMetrics, S>
436{
437 static void write(S* ostr, const ::IceMX::SessionMetrics& v)
438 {
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);
446 }
447};
448
449template<typename S>
450struct StreamReader< ::IceMX::SessionMetrics, S>
451{
452 static void read(S* istr, ::IceMX::SessionMetrics& v)
453 {
454 istr->read(v.forwardedClient);
455 istr->read(v.forwardedServer);
456 istr->read(v.routingTableSize);
457 istr->read(v.queuedClient);
458 istr->read(v.queuedServer);
459 istr->read(v.overriddenClient);
460 istr->read(v.overriddenServer);
461 }
462};
463
464}
466
467namespace IceMX
468{
469
470}
471
472#endif
473
475#endif
#define ICE_MEMBER(API)
Definition Config.h:177
#define GLACIER2_API
Definition PermissionsVerifierF.h:50
The base class for metrics.
Definition Metrics.h:341
Provides information on Glacier2 sessions.
Definition Metrics.h:79
SessionMetrics & operator=(const SessionMetrics &)=default
int forwardedClient
Number of client requests forwared.
Definition Metrics.h:136
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)
One-shot constructor to initialize all data members.
Definition Metrics.h:106
int routingTableSize
The size of the routing table.
Definition Metrics.h:144
SessionMetrics & operator=(SessionMetrics &&)=default
int queuedServer
Number of server requests queued.
Definition Metrics.h:152
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this value.
int queuedClient
Number of client requests queued.
Definition Metrics.h:148
int overriddenServer
Number of server requests overridden.
Definition Metrics.h:160
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
Obtains a tuple containing all of the value's data members.
Definition Metrics.h:122
int overriddenClient
Number of client requests overridden.
Definition Metrics.h:156
SessionMetrics(const SessionMetrics &)=default
int forwardedServer
Number of server requests forwared.
Definition Metrics.h:140
SessionMetrics(SessionMetrics &&)=default
Definition Metrics.h:65
Definition BuiltinSequences.h:56
int Int
The mapping for the Slice int type.
Definition Config.h:54
long long int Long
The mapping for the Slice long type.
Definition Config.h:57
const Current emptyCurrent
A default-initialized Current instance.
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:136
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:184