12#include "BuiltinSequences.h"
14#ifndef ICE_DISABLE_VERSION
15# if ICE_INT_VERSION != 30850
16# error Ice version mismatch: an exact match is required for beta generated code
107 ~MetricsAdminPrx()
override;
157 void _iceI_getMetricsViewNames(
const std::shared_ptr<IceInternal::OutgoingAsyncT<std::tuple<::Ice::StringSeq, ::Ice::StringSeq>>>&,
const Ice::Context&)
const;
182 void _iceI_enableMetricsView(
const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view,
const Ice::Context&)
const;
207 void _iceI_disableMetricsView(
const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view,
const Ice::Context&)
const;
244 void _iceI_getMetricsView(
const std::shared_ptr<IceInternal::OutgoingAsyncT<std::tuple<MetricsView, std::int64_t>>>&, std::string_view,
const Ice::Context&)
const;
275 void _iceI_getMapMetricsFailures(
const std::shared_ptr<IceInternal::OutgoingAsyncT<MetricsFailuresSeq>>&, std::string_view, std::string_view,
const Ice::Context&)
const;
309 void _iceI_getMetricsFailures(
const std::shared_ptr<IceInternal::OutgoingAsyncT<MetricsFailures>>&, std::string_view, std::string_view, std::string_view,
const Ice::Context&)
const;
323 explicit MetricsAdminPrx(IceInternal::ReferencePtr&& ref) :
Ice::ObjectPrx{std::move(ref)}
360 [[nodiscard]] const
char*
ice_id() const noexcept override;
364 [[nodiscard]] std::tuple<const std::
string&, const std::int64_t&, const std::int32_t&, const std::int64_t&, const std::int32_t&>
ice_tuple()
const
419 [[nodiscard]] std::tuple<const std::string&, const ::IceMX::StringIntDict&>
ice_tuple()
const
445 [[nodiscard]] const
char*
ice_id() const noexcept override;
451 void _writeImpl(
Ice::OutputStream*) const override;
454 void _readImpl(
Ice::InputStream*) override;
487 [[nodiscard]] const
char*
ice_id() const noexcept override;
491 [[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&>
ice_tuple()
const
557 [[nodiscard]] const
char*
ice_id() const noexcept override;
561 [[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::int64_t&, const std::int64_t&>
ice_tuple()
const
625 [[nodiscard]] const
char*
ice_id() const noexcept override;
629 [[nodiscard]] std::tuple<const std::
string&, const std::int64_t&, const std::int32_t&, const std::int64_t&, const std::int32_t&, const std::int64_t&, const std::int64_t&>
ice_tuple()
const
673 [[nodiscard]] const
char*
ice_id() const noexcept override;
705 [[nodiscard]] const
char*
ice_id() const noexcept override;
757 [[nodiscard]] const
char*
ice_id() const noexcept override;
761 [[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 ::
IceMX::
MetricsMap&, const ::
IceMX::
MetricsMap&>
ice_tuple()
const
828 [[nodiscard]] const
char*
ice_id() const noexcept override;
832 [[nodiscard]] std::tuple<const std::
string&, const std::int64_t&, const std::int32_t&, const std::int64_t&, const std::int32_t&, const std::int64_t&, const std::int64_t&>
ice_tuple()
const
864 using Ice::Tuple::operator<;
865 using Ice::Tuple::operator<=;
866 using Ice::Tuple::operator>;
867 using Ice::Tuple::operator>=;
868 using Ice::Tuple::operator==;
869 using Ice::Tuple::operator!=;
879 class ICE_API MetricsAdmin :
public virtual Ice::Object
883 using ProxyType = MetricsAdminPrx;
890 [[nodiscard]] std::vector<std::string> ice_ids(
const Ice::Current& current)
const override;
892 [[nodiscard]] std::string ice_id(
const Ice::Current& current)
const override;
907 virtual void enableMetricsView(std::string name,
const Ice::Current& current) = 0;
916 virtual void disableMetricsView(std::string name,
const Ice::Current& current) = 0;
929 virtual MetricsView getMetricsView(std::string view, std::int64_t& timestamp,
const Ice::Current& current) = 0;
940 virtual MetricsFailuresSeq getMapMetricsFailures(std::string view, std::string map,
const Ice::Current& current) = 0;
952 virtual MetricsFailures getMetricsFailures(std::string view, std::string map, std::string
id,
const Ice::Current& current) = 0;
959 static const char* ice_staticId() noexcept;
993 virtual void getMetricsViewNamesAsync(std::function<
void(const ::Ice::StringSeq& returnValue, const ::Ice::StringSeq& disabledViews)> response, std::function<
void(std::exception_ptr)> exception,
const Ice::Current& current) = 0;
1077 static constexpr StreamHelperCategory helper = StreamHelperCategoryStruct;
1078 static constexpr int minWireSize = 2;
1079 static constexpr bool fixedLength =
false;
virtual void disableMetricsViewAsync(std::string name, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current ¤t)=0
Disables a metrics view.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
MetricsAdminPrx ProxyType
The associated proxy type.
std::vector< std::string > ice_ids(const Ice::Current ¤t) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
std::string ice_id(const Ice::Current ¤t) const override
Gets the type ID of the most-derived Slice interface supported by this object.
virtual void enableMetricsViewAsync(std::string name, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current ¤t)=0
Enables a metrics view.
virtual void getMetricsViewNamesAsync(std::function< void(const ::Ice::StringSeq &returnValue, const ::Ice::StringSeq &disabledViews)> response, std::function< void(std::exception_ptr)> exception, const Ice::Current ¤t)=0
Gets the names of enabled and disabled metrics.
virtual void getMetricsFailuresAsync(std::string view, std::string map, std::string id, std::function< void(const MetricsFailures &returnValue)> response, std::function< void(std::exception_ptr)> exception, const Ice::Current ¤t)=0
Gets the metrics failure associated for the given metrics.
virtual void getMapMetricsFailuresAsync(std::string view, std::string map, std::function< void(const MetricsFailuresSeq &returnValue)> response, std::function< void(std::exception_ptr)> exception, const Ice::Current ¤t)=0
Gets the metrics failures associated with the given view and map.
void dispatch(Ice::IncomingRequest &request, std::function< void(Ice::OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
virtual void getMetricsViewAsync(std::string view, std::function< void(const MetricsView &returnValue, std::int64_t timestamp)> response, std::function< void(std::exception_ptr)> exception, const Ice::Current ¤t)=0
Gets the metrics objects for the given metrics view.
The metrics administrative facet interface.
ChildInvocationMetricsPtr ice_clone() const
Creates a shallow polymorphic copy of this instance.
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice class.
ChildInvocationMetrics(const ChildInvocationMetrics &)=default
Copy constructor.
std::int64_t size
The size of the invocation. This corresponds to the size of the marshaled input parameters.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
ChildInvocationMetrics() noexcept=default
Default constructor.
std::int64_t replySize
The size of the invocation reply.
std::tuple< const std::string &, const std::int64_t &, const std::int32_t &, const std::int64_t &, const std::int32_t &, const std::int64_t &, const std::int64_t & > ice_tuple() const
Creates a tuple with all the fields of this class.
Provides information on child invocations.
CollocatedMetrics(const CollocatedMetrics &)=default
Copy constructor.
CollocatedMetricsPtr 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.
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
ChildInvocationMetrics() noexcept=default
Default constructor.
Provides information on invocations that are collocated.
std::tuple< const std::string &, const std::int64_t &, const std::int32_t &, const std::int64_t &, const std::int32_t &, const std::int64_t &, const std::int64_t & > ice_tuple() const
Creates a tuple with all the fields of this class.
ConnectionMetricsPtr ice_clone() const
Creates a shallow polymorphic copy of this instance.
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
ConnectionMetrics() noexcept=default
Default constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice class.
ConnectionMetrics(const ConnectionMetrics &)=default
Copy constructor.
std::int64_t receivedBytes
The number of bytes received by the connection.
std::int64_t sentBytes
The number of bytes sent by the connection.
Provides information on the data sent and received over Ice connections.
std::int32_t userException
The number of dispatches that failed with a user exception.
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
DispatchMetricsPtr ice_clone() const
Creates a shallow polymorphic copy of this instance.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
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::int64_t &, const std::int64_t & > ice_tuple() const
Creates a tuple with all the fields of this class.
std::int64_t size
The size of the incoming requests. This corresponds to the size of the marshaled input parameters.
std::int64_t replySize
The size of the replies. This corresponds to the size of the marshaled output and return parameters.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice class.
DispatchMetrics(const DispatchMetrics &)=default
Copy constructor.
DispatchMetrics() noexcept=default
Default constructor.
Provides information on servant dispatches.
std::int32_t retry
The number of retries for the invocations.
::IceMX::MetricsMap collocated
The collocated invocation metrics map.
InvocationMetrics(const InvocationMetrics &)=default
Copy constructor.
InvocationMetrics() noexcept=default
Default constructor.
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 ::IceMX::MetricsMap &, const ::IceMX::MetricsMap & > ice_tuple() const
Creates a tuple with all the fields of this class.
::IceMX::MetricsMap remotes
The remote invocation metrics map.
std::int32_t userException
The number of invocations that failed with a user exception.
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
InvocationMetricsPtr ice_clone() const
Creates a shallow polymorphic copy of this instance.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice class.
Provide measurements for proxy invocations.
std::function< void()> enableMetricsViewAsync(std::string_view name, std::function< void()> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Enables a metrics view.
std::function< void()> getMetricsViewNamesAsync(std::function< void(::Ice::StringSeq, ::Ice::StringSeq)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Gets the names of enabled and disabled metrics.
MetricsAdminPrx(MetricsAdminPrx &&other) noexcept
Move constructor.
std::future< void > enableMetricsViewAsync(std::string_view name, const Ice::Context &context=Ice::noExplicitContext) const
Enables a metrics view.
void enableMetricsView(std::string_view name, const Ice::Context &context=Ice::noExplicitContext) const
Enables a metrics view.
MetricsAdminPrx(const MetricsAdminPrx &other) noexcept
Copy constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
MetricsFailures getMetricsFailures(std::string_view view, std::string_view map, std::string_view id, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics failure associated for the given metrics.
std::function< void()> getMapMetricsFailuresAsync(std::string_view view, std::string_view map, std::function< void(::IceMX::MetricsFailuresSeq)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics failures associated with the given view and map.
MetricsAdminPrx & operator=(const MetricsAdminPrx &rhs) noexcept
Copy assignment operator.
std::future< std::tuple<::Ice::StringSeq, ::Ice::StringSeq > > getMetricsViewNamesAsync(const Ice::Context &context=Ice::noExplicitContext) const
Gets the names of enabled and disabled metrics.
MetricsAdminPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
std::function< void()> getMetricsFailuresAsync(std::string_view view, std::string_view map, std::string_view id, std::function< void(::IceMX::MetricsFailures)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics failure associated for the given metrics.
std::future< MetricsFailuresSeq > getMapMetricsFailuresAsync(std::string_view view, std::string_view map, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics failures associated with the given view and map.
MetricsView getMetricsView(std::string_view view, std::int64_t ×tamp, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics objects for the given metrics view.
MetricsFailuresSeq getMapMetricsFailures(std::string_view view, std::string_view map, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics failures associated with the given view and map.
MetricsAdminPrx & operator=(MetricsAdminPrx &&rhs) noexcept
Move assignment operator.
std::future< MetricsFailures > getMetricsFailuresAsync(std::string_view view, std::string_view map, std::string_view id, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics failure associated for the given metrics.
std::future< void > disableMetricsViewAsync(std::string_view name, const Ice::Context &context=Ice::noExplicitContext) const
Disables a metrics view.
std::function< void()> disableMetricsViewAsync(std::string_view name, std::function< void()> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Disables a metrics view.
std::function< void()> getMetricsViewAsync(std::string_view view, std::function< void(::IceMX::MetricsView, std::int64_t)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics objects for the given metrics view.
::Ice::StringSeq getMetricsViewNames(::Ice::StringSeq &disabledViews, const Ice::Context &context=Ice::noExplicitContext) const
Gets the names of enabled and disabled metrics.
void disableMetricsView(std::string_view name, const Ice::Context &context=Ice::noExplicitContext) const
Disables a metrics view.
std::future< std::tuple< MetricsView, std::int64_t > > getMetricsViewAsync(std::string_view view, const Ice::Context &context=Ice::noExplicitContext) const
Gets the metrics objects for the given metrics view.
The metrics administrative facet interface.
Metrics() noexcept=default
Default constructor.
std::int32_t current
The number of objects currently 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 & > ice_tuple() const
Creates a tuple with all the fields of this class.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
Metrics(const Metrics &)=default
Copy constructor.
MetricsPtr 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.
std::string id
The metrics identifier.
std::int64_t totalLifetime
The sum of the lifetime of each observed objects.
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
std::int32_t failures
The number of failures observed.
std::int64_t total
The total number of objects observed by this metrics.
The base class for metrics.
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
RemoteMetricsPtr ice_clone() const
Creates a shallow polymorphic copy of this instance.
RemoteMetrics(const RemoteMetrics &)=default
Copy constructor.
ChildInvocationMetrics() noexcept=default
Default constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice class.
Provides information on invocations that are specifically sent over Ice connections.
ThreadMetrics() noexcept=default
Default constructor.
std::int32_t inUseForOther
The number of threads which are currently performing other activities such as DNS lookups,...
std::int32_t inUseForUser
The number of threads which are currently calling user code (servant dispatch, AMI callbacks,...
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 & > ice_tuple() const
Creates a tuple with all the fields of this class.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
const char * ice_id() const noexcept override
Gets the Slice type ID of the most-derived class supported by this object.
ThreadMetricsPtr 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.
std::int32_t inUseForIO
The number of threads which are currently performing socket reads or writes.
ThreadMetrics(const ThreadMetrics &)=default
Copy constructor.
Provides information on the number of threads currently in use and their activity.
void ice_throw() const override
Throws this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
The exception that is thrown when a metrics view cannot be found.
Represents a request received by a connection.
ObjectPrx & operator=(const ObjectPrx &rhs) noexcept=default
Copy assignment operator.
The base class for all Ice proxies.
The base class for servants.
Represents the response to an incoming request.
Represents a byte buffer used for marshaling data using the Slice encoding.
Provides typed proxy functions.
Abstract base class for all exceptions defined in Slice.
The base class for instances of Slice-defined classes.
std::map< std::string, std::int32_t > StringIntDict
A dictionary of strings to integers.
std::vector< MetricsPtr > MetricsMap
A sequence of metrics.
std::shared_ptr< Metrics > MetricsPtr
A shared pointer to a Metrics.
std::shared_ptr< RemoteMetrics > RemoteMetricsPtr
A shared pointer to a RemoteMetrics.
std::shared_ptr< MetricsAdmin > MetricsAdminPtr
A shared pointer to a MetricsAdmin.
std::shared_ptr< AsyncMetricsAdmin > AsyncMetricsAdminPtr
A shared pointer to an AsyncMetricsAdmin.
std::shared_ptr< DispatchMetrics > DispatchMetricsPtr
A shared pointer to a DispatchMetrics.
std::map< std::string, MetricsMap > MetricsView
A metrics view is a dictionary of metrics maps. The key of the dictionary is the name of the metrics ...
std::ostream & operator<<(std::ostream &os, const MetricsFailures &value)
Outputs the description of a MetricsFailures to a stream, including all its fields.
std::shared_ptr< ChildInvocationMetrics > ChildInvocationMetricsPtr
A shared pointer to a ChildInvocationMetrics.
std::shared_ptr< ConnectionMetrics > ConnectionMetricsPtr
A shared pointer to a ConnectionMetrics.
std::shared_ptr< InvocationMetrics > InvocationMetricsPtr
A shared pointer to an InvocationMetrics.
std::vector< MetricsFailures > MetricsFailuresSeq
A sequence of MetricsFailures.
std::shared_ptr< CollocatedMetrics > CollocatedMetricsPtr
A shared pointer to a CollocatedMetrics.
std::shared_ptr< ThreadMetrics > ThreadMetricsPtr
A shared pointer to a ThreadMetrics.
The Ice Management eXtension facility.
std::shared_ptr< Communicator > CommunicatorPtr
A shared pointer to a Communicator.
const Context noExplicitContext
Marker value used to indicate that no explicit request context was passed to a proxy invocation.
std::vector< std::string > StringSeq
A sequence of strings.
std::shared_ptr< Value > ValuePtr
A shared pointer to a Value.
std::map< std::string, std::string, std::less<> > Context
Represents additional information carried by an Ice request.
std::string id
The identifier of the metrics object associated to the failures.
std::tuple< const std::string &, const ::IceMX::StringIntDict & > ice_tuple() const
Creates a tuple with all the fields of this struct.
::IceMX::StringIntDict failures
The failures observed for this metrics.
void ice_printFields(std::ostream &os) const
Outputs the name and value of each field of this instance to the stream.
Keeps track of metrics failures.
Provides information about an incoming request being dispatched.