Ice 3.7 C++98 API Reference
|
Go to the documentation of this file.
16 #ifndef __IceStorm_Metrics_h__
17 #define __IceStorm_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 < 10
48 # error Ice patch level mismatch!
53 # if defined(ICE_STATIC_LIBS)
55 # elif defined(ICESTORM_API_EXPORTS)
56 # define ICESTORM_API ICE_DECLSPEC_EXPORT
58 # define ICESTORM_API ICE_DECLSPEC_IMPORT
62 #ifdef ICE_CPP11_MAPPING // C++11 mapping
68 class SubscriberMetrics;
79 class ICE_CLASS(ICESTORM_API) TopicMetrics :
public ::Ice::ValueHelper<TopicMetrics, Metrics>
85 TopicMetrics() =
default;
87 TopicMetrics(
const TopicMetrics&) =
default;
88 TopicMetrics(TopicMetrics&&) =
default;
89 TopicMetrics& operator=(
const TopicMetrics&) =
default;
90 TopicMetrics& operator=(TopicMetrics&&) =
default;
102 TopicMetrics(const ::std::string&
id,
long long int total,
int current,
long long int totalLifetime,
int failures,
long long int published,
long long int forwarded) :
103 Ice::ValueHelper<TopicMetrics, Metrics>(id, total, current, totalLifetime, failures),
104 published(published),
113 std::tuple<const ::std::string&, const long long int&, const int&, const long long int&, const int&, const long long int&, const long long int&> ice_tuple()
const
115 return std::tie(
id, total, current, totalLifetime, failures, published, forwarded);
127 long long int published = 0LL;
131 long long int forwarded = 0LL;
135 static TopicMetrics _iceS_TopicMetrics_init;
142 class ICE_CLASS(ICESTORM_API) SubscriberMetrics :
public ::Ice::ValueHelper<SubscriberMetrics, Metrics>
148 SubscriberMetrics() =
default;
150 SubscriberMetrics(
const SubscriberMetrics&) =
default;
151 SubscriberMetrics(SubscriberMetrics&&) =
default;
152 SubscriberMetrics& operator=(
const SubscriberMetrics&) =
default;
153 SubscriberMetrics& operator=(SubscriberMetrics&&) =
default;
166 SubscriberMetrics(const ::std::string&
id,
long long int total,
int current,
long long int totalLifetime,
int failures,
int queued,
int outstanding,
long long int delivered) :
167 Ice::ValueHelper<SubscriberMetrics, Metrics>(id, total, current, totalLifetime, failures),
169 outstanding(outstanding),
178 std::tuple<const ::std::string&, const long long int&, const int&, const long long int&, const int&, const int&, const int&, const long long int&> ice_tuple()
const
180 return std::tie(
id, total, current, totalLifetime, failures, queued, outstanding, delivered);
200 long long int delivered = 0LL;
217 static void write(S* ostr, const ::IceMX::TopicMetrics& v)
219 ostr->writeAll(v.published, v.forwarded);
235 static void write(S* ostr, const ::IceMX::SubscriberMetrics& v)
237 ostr->writeAll(v.queued, v.outstanding, v.delivered);
264 #else // C++98 mapping
275 ICESTORM_API ::IceProxy::Ice::Object*
upCast(TopicMetrics*);
278 class SubscriberMetrics;
281 ICESTORM_API ::IceProxy::Ice::Object*
upCast(SubscriberMetrics*);
293 ICESTORM_API ::Ice::Object*
upCast(TopicMetrics*);
398 ::
IceMX::
Metrics(id, total, current, totalLifetime, failures),
399 published(published),
404 #ifdef ICE_CPP11_COMPILER
477 inline bool operator<(
const TopicMetrics& lhs,
const TopicMetrics& rhs)
516 ::
IceMX::
Metrics(id, total, current, totalLifetime, failures),
518 outstanding(outstanding),
523 #ifdef ICE_CPP11_COMPILER
600 inline bool operator<(
const SubscriberMetrics& lhs,
const SubscriberMetrics& rhs)
615 static void write(S* ostr, const ::IceMX::TopicMetrics& v)
617 ostr->write(v.published);
618 ostr->write(v.forwarded);
635 static void write(S* ostr, const ::IceMX::SubscriberMetrics& v)
637 ostr->write(v.queued);
638 ostr->write(v.outstanding);
639 ostr->write(v.delivered);
SubscriberMetrics(const ::std::string &id, ::Ice::Long total, ::Ice::Int current, ::Ice::Long totalLifetime, ::Ice::Int failures, ::Ice::Int queued, ::Ice::Int outstanding, ::Ice::Long delivered)
One-shot constructor to initialize all data members.
Definition: Metrics.h:515
::Ice::Int queued
Number of queued events.
Definition: Metrics.h:580
::IceInternal::ProxyHandle< ::IceProxy::IceMX::SubscriberMetrics > SubscriberMetricsPrx
Definition: Metrics.h:307
::Ice::Long published
Number of events published on the topic by publishers.
Definition: Metrics.h:461
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.
IceUtil::Int64 Long
The mapping for the Slice long type.
Definition: Config.h:60
virtual ::Ice::ObjectPtr ice_clone() const
Polymorphically clones this object.
Definition: Metrics.h:211
const Current emptyCurrent
A default-initialized Current instance.
SubscriberMetricsPrx ProxyType
Definition: Metrics.h:491
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::ValueFactoryPtr ice_factory()
Obtains a value factory that instantiates this class.
TopicMetricsPrx TopicMetricsPrxPtr
Definition: Metrics.h:297
The base class for servants.
Definition: Object.h:193
::Ice::Int outstanding
Number of outstanding events.
Definition: Metrics.h:584
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.
::Ice::ValueFactoryPtr ice_factory()
Obtains a value factory that instantiates this class.
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
::Ice::Long delivered
Number of forwarded events.
Definition: Metrics.h:588
Definition: Metrics.h:227
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
#define ICE_MEMBER(API)
Definition: Config.h:177
SubscriberMetricsPtr PointerType
Definition: Metrics.h:492
The base class for metrics.
Definition: Metrics.h:2449
::IceInternal::ProxyHandle< ::IceProxy::IceMX::TopicMetrics > TopicMetricsPrx
Definition: Metrics.h:296
Provides information on IceStorm topics.
Definition: Metrics.h:372
virtual ::Ice::ObjectPtr ice_clone() const
Polymorphically clones this object.
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.
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
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.
#define ICE_INT64(n)
Definition: Config.h:343
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.
virtual ~SubscriberMetrics()
#define ICESTORM_API
Definition: Metrics.h:58
Definition: Metrics.h:327
::IceInternal::Handle< ValueFactory > ValueFactoryPtr
Definition: ValueFactory.h:167
Provides information on IceStorm subscribers.
Definition: Metrics.h:488
Definition: Metrics.h:344
Interface for output streams used to create a sequence of bytes from Slice types.
Definition: OutputStream.h:28
TopicMetricsPtr PointerType
Definition: Metrics.h:376
::IceInternal::Handle< TopicMetrics > TopicMetricsPtr
Definition: Metrics.h:291
Definition: BuiltinSequences.h:113
TopicMetrics()
Default constructor that assigns default values to members as specified in the Slice definition.
Definition: Metrics.h:381
Helper template that supplies proxy factory functions.
Definition: Proxy.h:2896
TopicMetrics(const ::std::string &id, ::Ice::Long total, ::Ice::Int current, ::Ice::Long totalLifetime, ::Ice::Int failures, ::Ice::Long published, ::Ice::Long forwarded)
One-shot constructor to initialize all data members.
Definition: Metrics.h:397
::Ice::Long forwarded
Number of events forwarded on the topic by IceStorm topic links.
Definition: Metrics.h:465
SubscriberMetrics()
Default constructor that assigns default values to members as specified in the Slice definition.
Definition: Metrics.h:497
TopicMetricsPrx ProxyType
Definition: Metrics.h:375
SubscriberMetricsPrx SubscriberMetricsPrxPtr
Definition: Metrics.h:308
IceUtil::Shared * upCast(::Ice::AsyncResult *)
int Int
The mapping for the Slice int type.
Definition: Config.h:54
::IceInternal::Handle< SubscriberMetrics > SubscriberMetricsPtr
Definition: Metrics.h:302
IceInternal::Handle< Object > ObjectPtr
Definition: ObjectF.h:21