dalideploymentengine.hpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*##############################################################################
  2. Copyright (C) 2011 HPCC Systems.
  3. All rights reserved. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ############################################################################## */
  14. #ifndef DALIDEPLOYMENTENGINE_HPP_INCL
  15. #define DALIDEPLOYMENTENGINE_HPP_INCL
  16. #include "DeploymentEngine.hpp"
  17. //---------------------------------------------------------------------------
  18. // CDaliDeploymentEngine
  19. //---------------------------------------------------------------------------
  20. class CDaliDeploymentEngine : public CDeploymentEngine
  21. {
  22. public:
  23. IMPLEMENT_IINTERFACE;
  24. CDaliDeploymentEngine(IEnvDeploymentEngine& envDepEngine,
  25. IDeploymentCallback& callback,
  26. IPropertyTree& process);
  27. protected:
  28. virtual void startInstance(IPropertyTree& node, const char* fileName="startup");
  29. virtual void stopInstance (IPropertyTree& node, const char* fileName="stop" );
  30. void _deploy(bool useTempDir);
  31. void copyInstallFiles(IPropertyTree& instanceNode, const char* destPath);
  32. virtual const char* setCompare(const char *filename);
  33. virtual void compareFiles(const char *newFile, const char *oldFile);
  34. private:
  35. virtual bool getInstallPath(const char *filename, StringBuffer& installPath);
  36. // void createDaliConf();
  37. private:
  38. StringBuffer m_daliConf;
  39. };
  40. //---------------------------------------------------------------------------
  41. #endif // DALIDEPLOYMENTENGINE_HPP_INCL