class libfwbuilder::DNS_bulkBackResolve_query


Inheritance:


Public Methods

[more] DNS_bulkBackResolve_query(set<IPAddress>, unsigned int nthreads, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT)
[more]virtual ~DNS_bulkBackResolve_query()
[more]virtual void run_impl(Logger* logger) throw(FWException)
Resolves all hosts in list.
[more]map<IPAddress, HostEnt> getResult()
[more]set<IPAddress> getFailed()

Protected Fields

[more]map<IPAddress, HostEnt> result
[more]Mutex failed_mutex
[more]set<IPAddress> failed
[more]Mutex result_mutex
[more]queue<IPAddress> ips
[more]Mutex queue_mutex
[more]int retries
[more]int timeout


Inherited from DNS:

Public Methods

ostatic vector<IPAddress> getHostByName(const string &name) throw(FWException)
ostatic HostEnt getHostByAddr(const IPAddress &addr) throw(FWException)
ostatic HostEnt getHostByAddr(const IPAddress &addr, int retries_, int timeout_) throw(FWException)
omultimap<string, IPAddress> getNS(const string &domain, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)
omap<string, set<IPAddress> > findA(const string &domain, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)
omap<string, set<IPAddress> > findA(const string &domain, const IPAddress &ns, Logger* logger, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT) throw(FWException)

Protected Methods

ostatic string getErrorMessage(int rcode)


Inherited from BackgroundOp:

Public Fields

oSigC::Signal1<int,int> completed

Public Methods

ovoid detach(Pool<BackgroundOp>* p)
ovirtual pthread_t start_operation(ostream* ) throw(FWException)
ovirtual void stop_operation()
obool get_running_flag()
obool get_stop_program_flag()
oFWException* get_latest_error()
ogint monitor_operation()

Protected Fields

oFWException* error
oPool<BackgroundOp> * pool
oMutex pool_mutex

Protected Methods

ovirtual void operation_completed()
ovoid set_running_flag()
ovoid clear_running_flag()
ovirtual void check_stop() throw(FWException)
ovoid clear_stop_program_flag()
ovoid set_stop_program_flag()


Documentation

o DNS_bulkBackResolve_query(set<IPAddress>, unsigned int nthreads, int retries_=RES_DFLRETRY, int timeout_=RES_TIMEOUT)

ovirtual ~DNS_bulkBackResolve_query()

ovirtual void run_impl(Logger* logger) throw(FWException)
Resolves all hosts in list. If resolving at least of one of them failed - exception is thrown. Even when exception is thrown, successfully resolved hosts are returned.

omap<IPAddress, HostEnt> getResult()

oset<IPAddress> getFailed()

omap<IPAddress, HostEnt> result

oMutex failed_mutex

oset<IPAddress> failed

oMutex result_mutex

oqueue<IPAddress> ips

oMutex queue_mutex

oint retries

oint timeout


This class has no child classes.
Friends:
void *DNS_bulkBackResolve_Thread(void *)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.