Class ThreadMetrics

All Implemented Interfaces:
Serializable, Cloneable

public class ThreadMetrics extends Metrics
Provides information on the number of threads currently in use and their activity.
See Also:
  • Field Details

    • inUseForIO

      public int inUseForIO
      The number of threads which are currently performing socket reads or writes.
    • inUseForUser

      public int inUseForUser
      The number of threads which are currently calling user code (servant dispatch, AMI callbacks, etc).
    • inUseForOther

      public int inUseForOther
      The number of threads which are currently performing other activities such as DNS lookups, garbage collection, etc. These are all the other threads created by the Ice runtime that are not counted in inUseForUser or inUseForIO.
  • Constructor Details

    • ThreadMetrics

      public ThreadMetrics()
      Constructs a ThreadMetrics.
    • ThreadMetrics

      public ThreadMetrics(String id, long total, int current, long totalLifetime, int failures, int inUseForIO, int inUseForUser, int inUseForOther)
      Constructs a ThreadMetrics 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.
      inUseForIO - The number of threads which are currently performing socket reads or writes.
      inUseForUser - The number of threads which are currently calling user code (servant dispatch, AMI callbacks, etc).
      inUseForOther - The number of threads which are currently performing other activities such as DNS lookups, garbage collection, etc.
  • Method Details

    • clone

      public ThreadMetrics clone()
      Description copied from class: Value
      Returns a copy of the object. The cloned object contains field-for-field copies of the state.
      Overrides:
      clone in class Metrics
      Returns:
      The cloned object.
    • ice_staticId

      public static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceMX::ThreadMetrics"
    • ice_id

      public String ice_id()
      Returns the Slice type ID of the most-derived interface supported by this object.
      Overrides:
      ice_id in class Metrics
      Returns:
      The return value is always ::Ice::Object.