Class MeteringAgent


  • public class MeteringAgent
    extends java.lang.Object
    Agent that implements usage and performance monitoring via the metrics service.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  MeteringAgent.Context
      Timer.Context with a specific operation.
    • Constructor Summary

      Constructors 
      Constructor Description
      MeteringAgent​(java.lang.String primitiveName, java.lang.String objName, boolean activated)
      Constructs a new MeteringAgent for a given distributed primitive.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MeteringAgent.Context startTimer​(java.lang.String op)
      Initializes a specific timer for a given operation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MeteringAgent

        public MeteringAgent​(java.lang.String primitiveName,
                             java.lang.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
        Parameters:
        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​(java.lang.String op)
        Initializes a specific timer for a given operation.
        Parameters:
        op - Specific operation being metered
        Returns:
        timer context