Class MonitoringInterceptor

java.lang.Object
net.bull.javamelody.MonitoringInterceptor
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MonitoringAsynchronousCdiInterceptor, MonitoringCdiInterceptor, MonitoringTargetInterceptor

public class MonitoringInterceptor extends Object implements Serializable
Intercepteur pour EJB 3 (Java EE 5+). Il est destiné à un compteur pour les statistiques d'exécutions de méthodes sur les "façades métiers" ( @Stateless, @Stateful ou @MessageDriven ). Il peut être paramétré dans le fichier ejb-jar.xml pour certains ejb ou pour tous les ejb, ou alors par l'annotation @Interceptors dans les sources java des implémentations d'ejb.
Author:
Emeric Vernat
See Also:
  • Constructor Details

    • MonitoringInterceptor

      public MonitoringInterceptor()
      Constructeur.
  • Method Details

    • intercept

      public Object intercept(InvocationContext context) throws Exception
      Intercepte une exécution de méthode sur un ejb.
      Parameters:
      context - InvocationContext
      Returns:
      Object
      Throws:
      Exception - e
    • getRequestName

      protected String getRequestName(InvocationContext context)
      Determine request name for an invocation context.
      Parameters:
      context - the invocation context (not null)
      Returns:
      the request name for this invocation