costin      2002/06/20 11:49:23

  Modified:    jk/java/org/apache/jk/core MsgContext.java
  Log:
  Added few timers, to help in tunning.
  
  It'll work like notes, i.e. various components will get an 'id' and use
  it to manage the timer.
  
  Right now I used some static constants, temporarily.
  
  Revision  Changes    Path
  1.5       +16 -0     
jakarta-tomcat-connectors/jk/java/org/apache/jk/core/MsgContext.java
  
  Index: MsgContext.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/core/MsgContext.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MsgContext.java   19 Jun 2002 18:24:49 -0000      1.4
  +++ MsgContext.java   20 Jun 2002 18:49:23 -0000      1.5
  @@ -90,9 +90,17 @@
       private Msg msgs[]=new Msg[10];
       private int status=0;
   
  +    // Application managed, like notes 
  +    private long timers[]=new long[20];
  +    
       // The context can be used by JNI components as well
       private long jkEndpointP;
       private long xEnvP;
  +
  +    // Temp: use notes and dynamic strings
  +    public static final int TIMER_RECEIVED=0;
  +    public static final int TIMER_PRE_REQUEST=1;
  +    public static final int TIMER_POST_REQUEST=2;
       
       public final Object getNote( int id ) {
           return notes[id];
  @@ -111,6 +119,14 @@
           type=i;
       }
   
  +    public final void setLong( int i, long l) {
  +        timers[i]=l;
  +    }
  +    
  +    public final long getLong( int i) {
  +        return timers[i];
  +    }
  +    
       // Common attributes ( XXX should be notes for flexibility ? )
   
       public final WorkerEnv getWorkerEnv() {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to