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

Last change on this file since 9028 was 9028, checked in by davidb, 19 years ago

Adjustment of collectset API arguments to be compatible with Stefan's Apache module code.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 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 add_all_collections (const text_t &gsdlhome);
43 void remove_all_collections ();
44
45 void remove_collection (const text_t &collection, ostream &logout);
46 void add_collection (const text_t &collection,
47 const text_t &gsdlhome);
48
49 // return the total number of servers in the set
50 int size();
51
52 void getCollectionList(text_tarray &collist);
53
54 // return the component map
55 collectservermapclass servers();
56
57 // configure a receptionist with the list of servers
58 void setReceptionistServers(receptionist &recpt, text_t &gsdlhome);
59
60 // return an individual collection server
61 collectserver *getCollectServer(const text_t &collection)
62 {
63 return cservers.getcollectserver(collection);
64 }
65};
66
67#endif
Note: See TracBrowser for help on using the repository browser.