java.lang.Object
com.zeroc.Ice.Value
com.zeroc.IceMX.Metrics
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
ChildInvocationMetrics
,ConnectionMetrics
,DispatchMetrics
,InvocationMetrics
,SessionMetrics
,SubscriberMetrics
,ThreadMetrics
,TopicMetrics
The base class for metrics. A metrics object represents a collection of measurements associated to a given a
system.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The number of objects currently observed by this metrics.int
The number of failures observed.The metrics identifier.long
The total number of objects observed by this metrics.long
The sum of the lifetime of each observed objects. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.zeroc.Ice.Value
ice_getSlicedData, ice_postUnmarshal, ice_preMarshal
-
Field Details
-
id
The metrics identifier. -
total
public long totalThe total number of objects observed by this metrics. This includes the number of currently observed objects and the number of objects observed in the past. -
current
public int currentThe number of objects currently observed by this metrics. -
totalLifetime
public long totalLifetimeThe sum of the lifetime of each observed objects. This does not include the lifetime of objects which are currently observed, only the objects observed in the past. -
failures
public int failuresThe number of failures observed.
-
-
Constructor Details
-
Metrics
public Metrics()Constructs aMetrics
. -
Metrics
Constructs aMetrics
with values for all its fields.- Parameters:
id
- The metrics identifier.total
- The total number of objects observed by this metrics.current
- The number of objects currently observed by this metrics.totalLifetime
- The sum of the lifetime of each observed objects.failures
- The number of failures observed.
-
-
Method Details
-
clone
Description copied from class:Value
Returns a copy of the object. The cloned object contains field-for-field copies of the state. -
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceMX::Metrics"
-
ice_id
Returns the Slice type ID of the most-derived interface supported by this object.
-