Ice 3.7 C++11 API Reference
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
IceMX::ThreadMetrics Class Reference

Provides information on the number of threads currently in use and their activity. More...

#include <Ice/Ice.h>

Inheritance diagram for IceMX::ThreadMetrics:
Inheritance graph
[legend]
Collaboration diagram for IceMX::ThreadMetrics:
Collaboration graph
[legend]

Public Member Functions

std::tuple< const ::std::string &, const long long int &, const int &, const long long int &, const int &, const int &, const int &, const int & > ice_tuple () const
 Obtains a tuple containing all of the value's data members. More...
 
ThreadMetricsoperator= (const ThreadMetrics &)=default
 
ThreadMetricsoperator= (ThreadMetrics &&)=default
 
 ThreadMetrics ()=default
 
 ThreadMetrics (const ::std::string &id, long long int total, int current, long long int totalLifetime, int failures, int inUseForIO, int inUseForUser, int inUseForOther)
 One-shot constructor to initialize all data members. More...
 
 ThreadMetrics (const ThreadMetrics &)=default
 
 ThreadMetrics (ThreadMetrics &&)=default
 
virtual ~ThreadMetrics ()
 

Static Public Member Functions

static const ::std::string & ice_staticId ()
 Obtains the Slice type ID of this value. More...
 

Public Attributes

int inUseForIO = 0
 The number of threads which are currently performing socket read or writes. More...
 
int inUseForOther = 0
 The number of threads which are currently performing other activities. More...
 
int inUseForUser = 0
 The number of threads which are currently calling user code (servant dispatch, AMI callbacks, etc). More...
 

Detailed Description

Provides information on the number of threads currently in use and their activity.

Constructor & Destructor Documentation

◆ ~ThreadMetrics()

virtual IceMX::ThreadMetrics::~ThreadMetrics ( )
virtual

◆ ThreadMetrics() [1/4]

IceMX::ThreadMetrics::ThreadMetrics ( )
default

◆ ThreadMetrics() [2/4]

IceMX::ThreadMetrics::ThreadMetrics ( const ThreadMetrics )
default

◆ ThreadMetrics() [3/4]

IceMX::ThreadMetrics::ThreadMetrics ( ThreadMetrics &&  )
default

◆ ThreadMetrics() [4/4]

IceMX::ThreadMetrics::ThreadMetrics ( const ::std::string &  id,
long long int  total,
int  current,
long long int  totalLifetime,
int  failures,
int  inUseForIO,
int  inUseForUser,
int  inUseForOther 
)
inline

One-shot constructor to initialize all data members.

Parameters
idThe metrics identifier.
totalThe total number of objects observed by this metrics.
currentThe number of objects currently observed by this metrics.
totalLifetimeThe sum of the lifetime of each observed objects.
failuresThe number of failures observed.
inUseForIOThe number of threads which are currently performing socket read or writes.
inUseForUserThe number of threads which are currently calling user code (servant dispatch, AMI callbacks, etc).
inUseForOtherThe number of threads which are currently performing other activities.

Member Function Documentation

◆ ice_staticId()

static const ::std::string& IceMX::ThreadMetrics::ice_staticId ( )
static

Obtains the Slice type ID of this value.

Returns
The fully-scoped type ID.

◆ ice_tuple()

std::tuple<const ::std::string&, const long long int&, const int&, const long long int&, const int&, const int&, const int&, const int&> IceMX::ThreadMetrics::ice_tuple ( ) const
inline

Obtains a tuple containing all of the value's data members.

Returns
The data members in a tuple.

◆ operator=() [1/2]

ThreadMetrics& IceMX::ThreadMetrics::operator= ( const ThreadMetrics )
default

◆ operator=() [2/2]

ThreadMetrics& IceMX::ThreadMetrics::operator= ( ThreadMetrics &&  )
default

Member Data Documentation

◆ inUseForIO

int IceMX::ThreadMetrics::inUseForIO = 0

The number of threads which are currently performing socket read or writes.

◆ inUseForOther

int IceMX::ThreadMetrics::inUseForOther = 0

The number of threads which are currently performing other activities.

These are all other that are not counted with inUseForUser or inUseForIO, such as DNS lookups, garbage collection).

◆ inUseForUser

int IceMX::ThreadMetrics::inUseForUser = 0

The number of threads which are currently calling user code (servant dispatch, AMI callbacks, etc).


The documentation for this class was generated from the following file: