portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Le Strat <dlest...@yahoo.com>
Subject Re: Fwd: cvs commit: jakarta-jetspeed-2/services/security/src/aop/org/apache/jetspeed/trace PerformanceTrace.java
Date Mon, 16 Feb 2004 22:47:43 GMT
Ooops. I will changes to my eclipse template to avoid
that kind of issue in the future. I apologize, this is
inapropriate.  I will also remove reference to my
sensova email and use my apache email instead.

Regards,

David.

--- David Sean Taylor <david@bluesunrise.com> wrote:
> David,
> 
> Could you please remove this file from the CVS
> immediately (and any  
> other with the SENSOVA copyright)
> Please do not check in java files with copyrights to
> your company into  
> the Apache CVS
> 
> Thanks,
> 
> David
> 
> Begin forwarded message:
> 
> > From: dlestrat@apache.org
> > Date: Thu Feb 12, 2004  6:52:07  AM US/Pacific
> > To: jakarta-jetspeed-2-cvs@apache.org
> > Subject: cvs commit:  
> >
>
jakarta-jetspeed-2/services/security/src/aop/org/apache/jetspeed/trace
>  
> > PerformanceTrace.java
> > Reply-To: "Jetspeed Developers List"
> <jetspeed-dev@jakarta.apache.org>
> >
> > dlestrat    2004/02/12 06:52:07
> >
> >   Added:      
> services/security/src/aop/org/apache/jetspeed/trace
> >                         PerformanceTrace.java
> >   Log:
> >   Aspect used for security service method
> execution performance  
> > tracing.
> >
> >   Revision  Changes    Path
> >   1.1                   
> >
>
jakarta-jetspeed-2/services/security/src/aop/org/apache/jetspeed/
> 
> > trace/PerformanceTrace.java
> >
> >   Index: PerformanceTrace.java
> >  
>
===================================================================
> >   /* <SENSOVA-COPYRIGHT>
> >    * Copyright (C) 2004 Sensova, LLC.
> >    * All Rights Reserved. No use, copying or
> distribution
> >    * of this work may be made except with a valid
> agreement
> >    * from Sensova, LLC.
> >    * This notice must be included on all copies,
> >    * modifications and derivatives of this work.
> >    * </SENSOVA-COPYRIGHT>
> >    *
> >    * File Created:
> org.apache.jetspeed.trace.Trace.java
> >    * Creation Date: Feb 2, 2004
> >    *
> >    */
> >   package org.apache.jetspeed.trace;
> >
> >   import java.util.logging.*;
> >
> >   /**
> >    * @author <a href="">David Le Strat</a>
> >    *
> >    */
> >   public aspect PerformanceTrace {
> >
> >       pointcut publicMethodCall() : call(public * 
> 
> > org.apache.jetspeed.security..*(..));
> >
> >       /**
> >        * <p>This is the advice code on the defined
> set of pointcuts in
> >        * publicMethodCall() - definition.</p>
> >        * <p>Wrap the method call(s) so we can log
> that it is about to  
> > be run,
> >        * the parameters it will run with and the
> result we get from it.
> >        * "around" is instead of the method call,
> alternatives are
> >        * "before" or "after".</p>
> >        */
> >       Object around() : publicMethodCall()
> >       {
> >           long startTime =
> System.currentTimeMillis();
> >
> >           // Execute the wrapped method and catch
> the result
> >           Object result = proceed();
> >
> >           long endTime =
> System.currentTimeMillis();
> >           long diff = endTime - startTime;
> >           if (diff > 100)
> >           {
> >               System.out.println("[INFO] " +
> thisJoinPoint);
> >               System.out.println("[INFO] Execution
> time: " + diff);
> >               System.out.println("[INFO]
> Arguments: " +  
> > thisJoinPoint.getArgs());
> >               if (result != null)
> >               {
> >                   System.out.println("[INFO]
> Result: " + thisJoinPoint  
> > + ": " + result.toString());
> >               }
> >           }
> >
> >           return result;
> >       }
> >
> >   }
> >
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> jetspeed-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> jetspeed-dev-help@jakarta.apache.org
> >
> >
> 
> --
> David Sean Taylor
> Bluesunrise Software
> david@bluesunrise.com
> [office]   +01 707 773-4646
> [mobile] +01 707 529 9194
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-dev-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message