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

Last change on this file since 1860 was 1860, checked in by cs025, 23 years ago

Included CORBA branch for first time

  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 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 ~collectset();
25
26 // initialise the collections
27 bool init(ostream &logout);
28
29 // configure all the servers as supplied
30 void configure (const text_t &key, const text_tarray &cfgline);
31
32 // Add/remove collections
33 void collectset::remove_collection (const text_t &collection, ostream &logout);
34 void collectset::add_collection (const text_t &collection, void *recpt,
35 const text_t &gsdlhome, const text_t &gdbmhome);
36
37 // return the total number of servers in the set
38 int size();
39
40 void getCollectionList(text_tarray &collist);
41
42 // return the component map
43 collectservermapclass servers();
44
45 // configure a receptionist with the list of servers
46 void setReceptionistServers(receptionist &recpt, text_t &gsdlhome);
47
48 // return an individual collection server
49 collectserver *getCollectServer(const text_t &collection)
50 {
51 return cservers.getcollectserver(collection);
52 }
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.