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.
Remarks:
The Slice compiler generated this class from Slice class ::IceMX::Metrics.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of objects currently observed by this metrics.intThe number of failures observed.The metrics identifier.longThe total number of objects observed by this metrics.longThe 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 aMetricswith 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:ValueReturns a shallow field-for-field copy of this object. -
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 class supported by this object.
-