7#ifndef Glacier2_Metrics_h_
8#define Glacier2_Metrics_h_
12#include <Ice/Metrics.h>
13#include <Glacier2/Config.h>
15#ifndef ICE_DISABLE_VERSION
16# if ICE_INT_VERSION != 30850
17# error Ice version mismatch: an exact match is required for beta generated code
22# if defined(GLACIER2_API_EXPORTS)
23# define GLACIER2_API ICE_DECLSPEC_EXPORT
25# define GLACIER2_API ICE_DECLSPEC_IMPORT
62 SessionMetrics(std::
string id, std::int64_t
total, std::int32_t
current, std::int64_t
totalLifetime, std::int32_t
failures, std::int32_t
forwardedClient, std::int32_t
forwardedServer, std::int32_t
routingTableSize, std::int32_t
queuedClient, std::int32_t
queuedServer, std::int32_t
overriddenClient, std::int32_t
overriddenServer) noexcept :
78 [[nodiscard]] const
char*
ice_id() const noexcept override;
82 [[nodiscard]] std::tuple<const std::
string&, const std::int64_t&, const std::int32_t&, const std::int64_t&, const std::int32_t&, const std::int32_t&, const std::int32_t&, const std::int32_t&, const std::int32_t&, const std::int32_t&, const std::int32_t&, const std::int32_t&>
ice_tuple()
const
84 return std::tie(
id,
total,
current,
totalLifetime,
failures,
forwardedClient,
forwardedServer,
routingTableSize,
queuedClient,
queuedServer,
overriddenClient,
overriddenServer);
103 [[deprecated(
"As of Ice 3.8, the Glacier2 router no longer queues requests.")]] std::int32_t
queuedClient{0};
106 [[deprecated(
"As of Ice 3.8, the Glacier2 router no longer queues requests.")]] std::int32_t
queuedServer{0};
109 [[deprecated(
"As of Ice 3.8, the Glacier2 router no longer queues requests.")]] std::int32_t
overriddenClient{0};
112 [[deprecated(
"As of Ice 3.8, the Glacier2 router no longer queues requests.")]] std::int32_t
overriddenServer{0};
Metrics() noexcept=default
Default constructor.
std::int32_t current
The number of objects currently observed by this metrics.
std::int64_t totalLifetime
The sum of the lifetime of each observed objects.
std::int32_t failures
The number of failures observed.
std::int64_t total
The total number of objects observed by this metrics.
std::tuple< const std::string &, const std::int64_t &, const std::int32_t &, const std::int64_t &, const std::int32_t &, const std::int32_t &, const std::int32_t &, const std::int32_t &, const std::int32_t &, const std::int32_t &, const std::int32_t &, const std::int32_t & > ice_tuple() const
Creates a tuple with all the fields of this class.
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
std::int32_t overriddenClient
The number of client requests overridden.
std::int32_t routingTableSize
The size of the routing table.
std::int32_t queuedServer
The number of server requests queued.
SessionMetrics(const SessionMetrics &)=default
Copy constructor.
std::int32_t forwardedServer
The number of server requests forwarded.
SessionMetricsPtr ice_clone() const
Creates a shallow polymorphic copy of this instance.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice class.
SessionMetrics() noexcept=default
Default constructor.
std::int32_t forwardedClient
The number of client requests forwarded.
std::int32_t overriddenServer
The number of server requests overridden.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::int32_t queuedClient
The number of client requests queued.
Provides information about Glacier2 sessions.
Represents a byte buffer used for marshaling data using the Slice encoding.
std::shared_ptr< SessionMetrics > SessionMetricsPtr
A shared pointer to a SessionMetrics.
The Ice Management eXtension facility.
std::shared_ptr< Value > ValuePtr
A shared pointer to a Value.