tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/include jk_worker.h
Date Sat, 02 Mar 2002 05:42:12 GMT
costin      02/03/01 21:42:12

  Modified:    jk/native2/include jk_worker.h
  Log:
  Finally remove validate().
  
  Initialization is done using setProperty() followed by an init().
  The worker should be independent of the way it is configured -
  and 'smart' workers can change some settings at runtime.
  
  Adding individual setters and introspection is of course not
  easy in C, but setProperty() is close enough for what we
  need.
  
  Revision  Changes    Path
  1.12      +10 -19    jakarta-tomcat-connectors/jk/native2/include/jk_worker.h
  
  Index: jk_worker.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_worker.h,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- jk_worker.h	6 Feb 2002 19:19:16 -0000	1.11
  +++ jk_worker.h	2 Mar 2002 05:42:12 -0000	1.12
  @@ -58,7 +58,7 @@
   /***************************************************************************
    * Description: Workers controller header file                             *
    * Author:      Gal Shachor <shachor@il.ibm.com>                           * 
  - * Version:     $Revision: 1.11 $                                           *
  + * Version:     $Revision: 1.12 $                                           *
    ***************************************************************************/
   
   #ifndef JK_WORKER_H
  @@ -152,10 +152,12 @@
       /** Communication channel used by the worker 
        */
       struct jk_channel *channel;
  +    char *channelName;
   
       /** Reuse the endpoint and it's connection
        */
       struct jk_objCache *endpointCache;
  +    int cache_sz;
   
       /** Request pool cache. XXX We may use a pool of requests.
        */
  @@ -181,33 +183,22 @@
       /** If num_of_workers > 0 this is an load balancing worker
        */
       jk_worker_t **lb_workers;
  +    struct jk_map *lbWorkerMap;
       int num_of_workers;
   
  -    /*
  -     * Given a worker which is in the process of being created, and a list
  -     * of configuration options (or 'properties'), check to see if it the
  -     * options are.  This will always be called before the init() method.
  -     *
  -     * This is different from init - see the apache config process.
  -     * Validate should only do static checks on data ( if it has all
  -     * the info it needs and if it's valid ). Init() can do any
  -     * 'active' opertions.
  -     *
  -     * You can skip this by setting it to NULL.
  -     */
  -    int (JK_METHOD *validate)(struct jk_env *env, jk_worker_t *_this,
  -                              struct jk_map *props,
  -                              struct jk_workerEnv *we);
  +    int (JK_METHOD *setProperty)(struct jk_env *env, jk_worker_t *_this,
  +                                 char *name, char *value );
   
  +    char *(JK_METHOD *getProperty)(struct jk_env *env, jk_worker_t *_this,
  +                                   char *name );
  +    
       /*
        * Do whatever initialization needs to be done to start this worker up.
        * Configuration options are passed in via the props parameter.  
        *
        * You can skip this by setting it to NULL.
        */
  -    int (JK_METHOD *init)(struct jk_env *env, jk_worker_t *_this,
  -                          struct jk_map *props,
  -                          struct jk_workerEnv *we );
  +    int (JK_METHOD *init)(struct jk_env *env, jk_worker_t *_this);
   
       /*
        * Shutdown this worker. XXX Some cleanup must be made by default
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message