FACT++
1.0
|
Maintains a list of all servers based on DIS_DNS/SERVER_LIST. More...
#include <DimServerList.h>
Public Types | |
typedef std::vector< std::string > | ServerList |
Public Member Functions | |
DimServerList (DimServerListImp *list) | |
const ServerList & | GetServerList () const |
bool | HasServer (const std::string &server) const |
Public Member Functions inherited from DimInfoHandler | |
DimInfo * | getInfo () |
virtual | ~DimInfoHandler () |
Protected Member Functions | |
void | infoHandler () |
A DimInfo to retrieve the SERVER_LIST from teh DNS server. More... | |
Private Attributes | |
DimServerListImp * | fList |
ServerList | fServerList |
DimInfo | fDimServers |
A list with the available servers. More... | |
Additional Inherited Members | |
Public Attributes inherited from DimInfoHandler | |
DimInfo * | itsService |
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:
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.