public static SearchFactoryImpl GetSearchFactory(Configuration cfg)
        {
            if (contexts == null)
            {
                contexts = new WeakHashtable();
            }

            SearchFactoryImpl searchFactory = (SearchFactoryImpl)contexts[cfg];

            if (searchFactory == null)
            {
                searchFactory = new SearchFactoryImpl(cfg);
                contexts[cfg] = searchFactory;
            }
            return(searchFactory);
        }
 public void Initialize(IDictionary props, SearchFactoryImpl searchFactory)
 {
     queueingProcessor = new BatchedQueueingProcessor(searchFactory, props);
 }
        public static SearchFactoryImpl GetSearchFactory(Configuration cfg)
        {
            if (contexts == null)
            {
                contexts = new WeakHashtable();
            }

            SearchFactoryImpl searchFactory = (SearchFactoryImpl) contexts[cfg];
            if (searchFactory == null)
            {
                searchFactory = new SearchFactoryImpl(cfg);
                contexts[cfg] = searchFactory;
            }
            return searchFactory;
        }
 public static IWorker CreateWorker(Configuration cfg, SearchFactoryImpl searchFactory)
 {
     IWorker worker = new TransactionalWorker();
     worker.Initialize((IDictionary) cfg.Properties, searchFactory);
     return worker;
 }