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 < 11
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
78class 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;
164static SessionMetrics _iceS_SessionMetrics_init;
179struct StreamWriter<::IceMX::SessionMetrics, S>
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);
188struct StreamReader<::IceMX::SessionMetrics, S>
190 static void read(S* istr, ::IceMX::SessionMetrics& v)
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) :
329#ifdef ICE_CPP11_COMPILER
422inline bool operator<(
const SessionMetrics& lhs,
const SessionMetrics& rhs)
435struct StreamWriter< ::IceMX::SessionMetrics, S>
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);
450struct StreamReader< ::IceMX::SessionMetrics, S>
452 static void read(S* istr, ::IceMX::SessionMetrics& v)
#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 ¤t=::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 ¤t=::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 ¤t=::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
virtual ~SessionMetrics()
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
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
::IceInternal::Handle< SessionMetrics > SessionMetricsPtr
Definition Metrics.h:233
::IceInternal::ProxyHandle< ::IceProxy::IceMX::SessionMetrics > SessionMetricsPrx
Definition Metrics.h:234
SessionMetricsPrx SessionMetricsPrxPtr
Definition Metrics.h:235
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.