Ice 3.7 C++98 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
82 ICE_MEMBER(GLACIER2_API) virtual ~SessionMetrics();
83
84 SessionMetrics() = default;
85
86 SessionMetrics(const SessionMetrics&) = default;
87 SessionMetrics(SessionMetrics&&) = default;
88 SessionMetrics& operator=(const SessionMetrics&) = default;
89 SessionMetrics& operator=(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),
108 forwardedClient(forwardedClient),
109 forwardedServer(forwardedServer),
110 routingTableSize(routingTableSize),
111 queuedClient(queuedClient),
112 queuedServer(queuedServer),
113 overriddenClient(overriddenClient),
114 overriddenServer(overriddenServer)
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
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;
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;
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
282{
283public:
284
287
289
295 queuedClient(0),
296 queuedServer(0),
299 {
300 }
301
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
411};
412
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
::Ice::Int current
The number of objects currently observed by this metrics.
Definition Metrics.h:2550
::Ice::Long totalLifetime
The sum of the lifetime of each observed objects.
Definition Metrics.h:2556
::std::string id
The metrics identifier.
Definition Metrics.h:2540
Metrics()
Default constructor that assigns default values to members as specified in the Slice definition.
Definition Metrics.h:2458
::Ice::Int failures
The number of failures observed.
Definition Metrics.h:2560
::Ice::Long total
The total number of objects observed by this metrics.
Definition Metrics.h:2546
Provides information on Glacier2 sessions.
Definition Metrics.h:282
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)
One-shot constructor to initialize all data members.
Definition Metrics.h:317
SessionMetricsPtr PointerType
Definition Metrics.h:286
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual bool ice_isA(const ::std::string &id, const ::Ice::Current &current=::Ice::emptyCurrent) const
Determines whether this object supports an interface with the given Slice type ID.
SessionMetrics()
Default constructor that assigns default values to members as specified in the Slice definition.
Definition Metrics.h:291
virtual ::std::vector< ::std::string > ice_ids(const ::Ice::Current &current=::Ice::emptyCurrent) const
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
virtual::Ice::ObjectPtr ice_clone() const
Polymorphically clones this object.
SessionMetricsPrx ProxyType
Definition Metrics.h:285
::Ice::Int queuedClient
Number of client requests queued.
Definition Metrics.h:398
::Ice::Int routingTableSize
The size of the routing table.
Definition Metrics.h:394
::Ice::Int forwardedServer
Number of server requests forwared.
Definition Metrics.h:390
virtual const ::std::string & ice_id(const ::Ice::Current &current=::Ice::emptyCurrent) const
Obtains a Slice type ID representing the most-derived interface supported by this object.
::Ice::Int queuedServer
Number of server requests queued.
Definition Metrics.h:402
::Ice::ValueFactoryPtr ice_factory()
Obtains a value factory that instantiates this class.
::Ice::Int overriddenServer
Number of server requests overridden.
Definition Metrics.h:410
::Ice::Int forwardedClient
Number of client requests forwared.
Definition Metrics.h:386
::Ice::Int overriddenClient
Number of client requests overridden.
Definition Metrics.h:406
Definition Metrics.h:254
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
Interface for input streams used to extract Slice types from a sequence of bytes.
Definition InputStream.h:50
The base class for servants.
Definition Object.h:193
Interface for output streams used to create a sequence of bytes from Slice types.
Definition OutputStream.h:28
Helper template that supplies proxy factory functions.
Definition Proxy.h:2904
Definition Metrics.h:227
::IceInternal::Handle< SessionMetrics > SessionMetricsPtr
Definition Metrics.h:233
::IceInternal::ProxyHandle< ::IceProxy::IceMX::SessionMetrics > SessionMetricsPrx
Definition Metrics.h:234
SessionMetricsPrx SessionMetricsPrxPtr
Definition Metrics.h:235
Definition Metrics.h:211
int Int
The mapping for the Slice int type.
Definition Config.h:54
IceUtil::Int64 Long
The mapping for the Slice long type.
Definition Config.h:60
const Current emptyCurrent
A default-initialized Current instance.