Class MeteringAgent

  • public class MeteringAgent
    extends Object
    Agent that implements usage and performance monitoring via the metrics service.
    • Constructor Detail

      • MeteringAgent

        public MeteringAgent​(String primitiveName,
                             String objName,
                             boolean activated)
        Constructs a new MeteringAgent for a given distributed primitive. Instantiates the metrics service Initializes all the general metrics for that object
        primitiveName - Type of primitive to be metered
        objName - Global name of the primitive
        activated - boolean flag for whether metering is enabled or not
    • Method Detail

      • startTimer

        public MeteringAgent.Context startTimer​(String op)
        Initializes a specific timer for a given operation.
        op - Specific operation being metered
        timer context