Logo Search packages:      
Sourcecode: dbbalancer version File versions

DBManagementMO.hh

#include <iostream>
#include <string>
#include <ace/Method_Object.h>

class DBBalancer;
class DBManagementMO: public ACE_Method_Object {

public:

  DBManagementMO (DBBalancer *db, unsigned int delay, bool connTest=true, bool threadTest=true);
  ~DBManagementMO();
  int call ();

  void shutdown();

private:

  void checkConnections(int threadGain);
  int checkThreads(unsigned int poolNumber);

  DBBalancer* _db;
  unsigned int _delay;
  bool _connTest;
  bool _threadTest;
  bool _run;

};

Generated by  Doxygen 1.6.0   Back to index