summaryrefslogtreecommitdiff
path: root/icetray/icetrayService.h
diff options
context:
space:
mode:
Diffstat (limited to 'icetray/icetrayService.h')
-rw-r--r--icetray/icetrayService.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/icetray/icetrayService.h b/icetray/icetrayService.h
index 10a1700..8f35519 100644
--- a/icetray/icetrayService.h
+++ b/icetray/icetrayService.h
@@ -4,29 +4,24 @@
#include <IceBox/IceBox.h>
#include <factory.h>
#include <visibility.h>
-#include <connectionPool.h>
+#include "database.h"
namespace IceTray {
- typedef AdHoc::ResourcePool<DB::Connection> PoolType;
- typedef boost::shared_ptr<PoolType> PoolTypePtr;
-
class DLL_PUBLIC Service : public IceBox::Service, public AdHoc::AbstractPluginImplementation {
public:
- typedef boost::shared_ptr<DB::ConnectionPool> DBCPoolPtr;
-
virtual void addObjects(const std::string & name, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr &) = 0;
void start(const std::string & name, const Ice::CommunicatorPtr & ic, const Ice::StringSeq & args) override;
void stop() override;
- PoolTypePtr getConnectionPool(const Ice::CommunicatorPtr & ic, const std::string & type, const std::string & prefix);
+ DatabasePoolPtr getConnectionPool(const Ice::CommunicatorPtr & ic, const std::string & type, const std::string & prefix);
Ice::ObjectAdapterPtr adp;
};
typedef AdHoc::Factory<Service> ServiceFactory;
- typedef AdHoc::Factory<PoolType, const std::string &, const std::string &, Ice::PropertiesPtr> PoolProvider;
+ typedef AdHoc::Factory<DatabasePool, const std::string &, const std::string &, Ice::PropertiesPtr> PoolProvider;
}
#endif