@zeroc/ice
    Preparing search index...

    Class ThreadMetrics

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

    The Slice compiler generated this class from Slice class ::IceMX::ThreadMetrics.

    Hierarchy (View Summary)

    Index

    Constructors

    • One-shot constructor to initialize all data members.

      Parameters

      • Optionalid: string

        The metrics identifier.

      • Optionaltotal: bigint

        The total number of objects observed by this metrics.

      • Optionalcurrent: number

        The number of objects currently observed by this metrics.

      • OptionaltotalLifetime: bigint

        The sum of the lifetimes of each observed object.

      • Optionalfailures: number

        The number of failures observed.

      • OptionalinUseForIO: number

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

      • OptionalinUseForUser: number

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

      • OptionalinUseForOther: number

        The number of threads which are currently performing other activities such as DNS lookups, garbage collection, etc.

      Returns ThreadMetrics

    Properties

    current: number

    The number of objects currently observed by this metrics.

    failures: number

    The number of failures observed.

    id: string

    The metrics identifier.

    inUseForIO: number

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

    inUseForOther: number

    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 IceMX.ThreadMetrics.inUseForUser or IceMX.ThreadMetrics.inUseForIO.

    inUseForUser: number

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

    total: bigint

    The 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.

    totalLifetime: bigint

    The sum of the lifetimes of each observed object. This does not include the lifetimes of objects which are currently observed, only the objects observed in the past.

    Methods

    • Obtains the sliced data associated with this instance.

      Returns SlicedData | null

      The sliced data if this value was sliced during unmarshaling, null otherwise. Unknown slices are preserved only when the sender uses the sliced format.

    • Obtains the Slice type ID of the most-derived class supported by this object.

      Returns string

      The type ID.

    • The Ice runtime invokes this method after unmarshaling an object's data members. This allows a subclass to override this method in order to perform additional initialization.

      Returns void

    • The Ice runtime invokes this method prior to marshaling an object's data members. This allows a subclass to override this method in order to validate its data members.

      Returns void

    • Obtains the Slice type ID of this type.

      Returns string

      The return value is always "::Ice::Object".