portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EP...@upstate.com
Subject RE: Portlet getContent() load time -> Portlet Stats package - Pat ch
Date Thu, 27 Feb 2003 20:33:12 GMT
If you create a bug in bugzilla, you can attach them online...  that might
help...

Eric

-----Original Message-----
From: Todd Kuebler [mailto:tkuebler@cisco.com]
Sent: Thursday, February 27, 2003 3:37 PM
To: Jetspeed Developers List; jetspeed-dev@jakarta.apache.org
Cc: todd@kuebler.org
Subject: Re: Portlet getContent() load time -> Portlet Stats package -
Patch


Attachments are definitely getting stripped.    here are the patches 
inline, sorry for the inconvience.  I'll try to track the source of my 
troubles and correct before I send anything else. :)

 >>>>>>>>>>>>>>>>>>>>>

105c105
<  * @version $Id: JetspeedPortletStatsService.java,v 1.1 2002/08/27 
19:09:58 morciuch Exp $
---
 >  * @version $Id: JetspeedPortletStatsService.java,v 1.5 2003/02/20 
00:49:39 tkuebler Exp $
190c190
<     public void logAccess(RunData data, Portlet portlet, String
statusCode)
---
 >     public void logAccess(RunData data, Portlet portlet, String 
statusCode, long time)
191a192
 >
199c200
<             Log.info(loggerName, this.getLogMessage(data, portlet, 
statusCode));
---
 >             Log.info(loggerName, this.getLogMessage(data, portlet, 
statusCode,time));
215c216
<     private String getLogMessage(RunData data, Portlet portlet, String 
statusCode)
---
 >     private String getLogMessage(RunData data, Portlet portlet, String 
statusCode, long time)
230c231
<             "-"
---
 >             String.valueOf(time)
236a238,241
 >     public void logAccess(RunData data, Portlet portlet, String 
statusCode) {
 >         logAccess(data,portlet,statusCode,0);
 >     }
 >

 >>>>>>>>>>>>>>>>>>>>>

72c72
<  * @version $Id: PortletStats.java,v 1.2 2002/09/03 15:01:40 morciuch Exp
$
---
 >  * @version $Id: PortletStats.java,v 1.4 2003/02/20 00:29:50 tkuebler Exp
$
120c120,124
<
---
 >
 >     public static void logAccess(RunData data, Portlet portlet, String 
statusCode, long time)
 >     {
 >         getService().logAccess(data, portlet, statusCode, time);
 >     }


 >>>>>>>>>>>>>>>

68c68
<  * @version $Id: PortletStatsService.java,v 1.1 2002/08/27 19:09:58 
morciuch Exp $
---
 >  * @version $Id: PortletStatsService.java,v 1.4 2003/02/20 00:24:51 
tkuebler Exp $
98a99
 >     public void logAccess(RunData data, Portlet portlet, String 
statusCode,long time);


 >>>>>>>>>>>>>>>

89c89
< @version $Id: PortletWrapper.java,v 1.19 2003/01/21 21:33:57 morciuch Exp
$
---
 > @version $Id: PortletWrapper.java,v 1.4 2003/02/20 00:23:33 tkuebler Exp
$
98a99
 >     private ConcreteElement content = null;
141c142
<
---
 >
146c147,154
<                 PortletStats.logAccess(rundata, this, 
PortletStats.ACCESS_OK);
---
 >                 Log.debug("PortletWrapper: loggin access");
 >             	long start = System.currentTimeMillis();
 >             	content = wrappedPortlet.getContent(rundata);
 >             	long time = System.currentTimeMillis() - start; // time it 
took to get the content for this portlet
 >                 PortletStats.logAccess(rundata, this, 
PortletStats.ACCESS_OK, time);
 >             } else {
 >                 Log.debug("PortletWrapper: portlet stats not enabled");
 >             	content = wrappedPortlet.getContent(rundata);
148c156,157
<             return wrappedPortlet.getContent(rundata);
---
 >
 >             return content;



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message