source: trunk/gsdl/src/colservr/collectset.h@ 9027

Last change on this file since 9027 was 8028, checked in by davidb, 20 years ago

Changes introduced to support lucene indexer.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/************************************************************
2 *
3 * Collection set
4 *
5 ************************************************************/
6
7#ifndef COLLECTSET_H
8#define COLLECTSET_H
9
10#include "collectserver.h"
11#include "cnfgable.h"
12#include "receptionist.h"
13#include "mgsearch.h"
14#include "mgppsearch.h"
15#include "lucenesearch.h"
16
17class collectset : public configurable
18{
19 protected:
20 collectservermapclass cservers;
21 mgsearchclass *mgsearch;
22 mgppsearchclass *mgppsearch;
23 lucenesearchclass *lucenesearch;
24 int noofservers;
25 text_t httpdomain;
26 text_t httpprefix;
27
28 public:
29 collectset(text_t &gsdlhome);
30 // this constructor is used by the local library
31 collectset() {}
32
33 ~collectset();
34
35 // initialise the collections
36 bool init(ostream &logout);
37
38 // configure all the servers as supplied
39 void configure (const text_t &key, const text_tarray &cfgline);
40
41 // Add/remove collections
42 void remove_collection (const text_t &collection, ostream &logout);
43 void add_collection (const text_t &collection, void *recpt,
44 const text_t &gsdlhome, const text_t &gdbmhome);
45
46 // return the total number of servers in the set
47 int size();
48
49 void getCollectionList(text_tarray &collist);
50
51 // return the component map
52 collectservermapclass servers();
53
54 // configure a receptionist with the list of servers
55 void setReceptionistServers(receptionist &recpt, text_t &gsdlhome);
56
57 // return an individual collection server
58 collectserver *getCollectServer(const text_t &collection)
59 {
60 return cservers.getcollectserver(collection);
61 }
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.