Annotation Type InfoMethod


  • @Documented
    @Target(METHOD)
    @Retention(RUNTIME)
    public @interface InfoMethod
    Used to indicate that a method is used for invoking MethodMonitor.info. Note that the tracing name is the method name unless overridden by a TracingName annotation (which is required if the method is overloaded). Also note that either all overloaded methods of the same name are InfoMethods, or none of them are. The name of this method as a TimingPoint is the same as the tracing name. The method must be private and have a void return type. Any arguments are passed into the MethodMonitor.info call in the instrumented code.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String tpName
      Gives the name of timing point to use for this info method.
      TimingPointType tpType
      Indicates whether this info method represents an ENTER, EXIT, or NONE (no timing point).
    • Element Detail

      • tpType

        TimingPointType tpType
        Indicates whether this info method represents an ENTER, EXIT, or NONE (no timing point).
        Default:
        org.glassfish.pfl.tf.spi.TimingPointType.NONE
      • tpName

        java.lang.String tpName
        Gives the name of timing point to use for this info method. Must not be "" if tpType is not NONE.
        Default:
        ""