stevel      2002/06/27 16:06:39

  Modified:    java/src/org/apache/axis/client Call.java
  Log:
  timing from costin
  
  Revision  Changes    Path
  1.149     +12 -1     xml-axis/java/src/org/apache/axis/client/Call.java
  
  Index: Call.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Call.java,v
  retrieving revision 1.148
  retrieving revision 1.149
  diff -u -r1.148 -r1.149
  --- Call.java 27 Jun 2002 16:36:07 -0000      1.148
  +++ Call.java 27 Jun 2002 23:06:39 -0000      1.149
  @@ -141,6 +141,8 @@
   public class Call implements javax.xml.rpc.Call {
       protected static Log log =
           LogFactory.getLog(Call.class.getName());
  +    private static Log tlog =
  +        LogFactory.getLog("org.apache.axis.TIME");
   
       private boolean            parmAndRetReq   = true ;
       private Service            service         = null ;
  @@ -1170,6 +1172,10 @@
        * @throws java.rmi.RemoteException if there's an error
        */
       public Object invoke(Object[] params) throws java.rmi.RemoteException {
  +        long t0=0, t1=0, t2=0, t3=0;
  +        if( tlog.isDebugEnabled() ) {
  +            t0=System.currentTimeMillis();
  +        }
           /* First see if we're dealing with Messaging instead of RPC.        */
           /* If ALL of the params are SOAPBodyElements then we're doing       */
           /* Messaging, otherwise just fall through to normal RPC processing. */
  @@ -1211,8 +1217,13 @@
           if ( operationName == null )
               throw new AxisFault( JavaUtils.getMessage("noOperation00") );
           try {
  -            return this.invoke(operationName.getNamespaceURI(),
  +            Object res=this.invoke(operationName.getNamespaceURI(),
                       operationName.getLocalPart(), params);
  +            if( tlog.isDebugEnabled() ) {
  +                t1=System.currentTimeMillis();
  +                tlog.debug("axis.Call.invoke: " + (t1-t0)  + " " + operationName);
  +            }
  +            return res;
           }
           catch( AxisFault af) {
               throw af;
  
  
  


Reply via email to