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

Last change on this file since 1886 was 1886, checked in by sjboddie, 23 years ago

Caught local library up with changes brought about when corba stuff
was added.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 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" // Added 8/9/200 to permit receptionist configuration
13
14class collectset : public configurable
15{
16 protected:
17 collectservermapclass cservers;
18 int noofservers;
19 text_t httpdomain;
20 text_t httpprefix;
21
22 public:
23 collectset(text_t &gsdlhome);
24 // this constructor is used by the local library
25 collectset() {}
26
27 ~collectset();
28
29 // initialise the collections
30 bool init(ostream &logout);
31
32 // configure all the servers as supplied
33 void configure (const text_t &key, const text_tarray &cfgline);
34
35 // Add/remove collections
36 void collectset::remove_collection (const text_t &collection, ostream &logout);
37 void collectset::add_collection (const text_t &collection, void *recpt,
38 const text_t &gsdlhome, const text_t &gdbmhome);
39
40 // return the total number of servers in the set
41 int size();
42
43 void getCollectionList(text_tarray &collist);
44
45 // return the component map
46 collectservermapclass servers();
47
48 // configure a receptionist with the list of servers
49 void setReceptionistServers(receptionist &recpt, text_t &gsdlhome);
50
51 // return an individual collection server
52 collectserver *getCollectServer(const text_t &collection)
53 {
54 return cservers.getcollectserver(collection);
55 }
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.