FACT++  1.0
DimServerList Class Reference

Maintains a list of all servers based on DIS_DNS/SERVER_LIST. More...

#include <DimServerList.h>

+ Inheritance diagram for DimServerList:
+ Collaboration diagram for DimServerList:

Public Types

typedef std::vector< std::string > ServerList

Public Member Functions

 DimServerList (DimServerListImp *list)
const ServerListGetServerList () const
bool HasServer (const std::string &server) const
- Public Member Functions inherited from DimInfoHandler
DimInfogetInfo ()
virtual ~DimInfoHandler ()

Protected Member Functions

void infoHandler ()
 A DimInfo to retrieve the SERVER_LIST from teh DNS server. More...

Private Attributes

ServerList fServerList
DimInfo fDimServers
 A list with the available servers. More...

Additional Inherited Members

- Public Attributes inherited from DimInfoHandler

Detailed Description

Maintains a list of all servers based on DIS_DNS/SERVER_LIST.

This class describes to the service DIS_DNS/SERVER_LIST of the name server. Thus it always contains an up-to-date list of all servers connected to the dns server.

Whenever a server is added or removed, or all servers are removed from the #list (the dns itself went offline), the follwoing virtual functions are called:

  • virtual void AddServer(const std::string &)
  • virtual void RemoveServer(const std::string)
  • virtual void RemoveAllServers()

If overwritten the implementations of the base class doesn't need to be called, because it's empty.

When a server silently disappears and reappears the service has not correctly been deleted from the list and an exception is thrown. It is not clear what a better handling here is. Maybe a server is first removed from the list before it gets re-added if already in the list?

Definition at line 11 of file DimServerList.h.

The documentation for this class was generated from the following files: