dalideploymentengine.hpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef DALIDEPLOYMENTENGINE_HPP_INCL
  14. #define DALIDEPLOYMENTENGINE_HPP_INCL
  15. #include "DeploymentEngine.hpp"
  16. //---------------------------------------------------------------------------
  17. // CDaliDeploymentEngine
  18. //---------------------------------------------------------------------------
  19. class CDaliDeploymentEngine : public CDeploymentEngine
  20. {
  21. public:
  22. IMPLEMENT_IINTERFACE;
  23. CDaliDeploymentEngine(IEnvDeploymentEngine& envDepEngine,
  24. IDeploymentCallback& callback,
  25. IPropertyTree& process);
  26. protected:
  27. virtual void startInstance(IPropertyTree& node, const char* fileName="startup");
  28. virtual void stopInstance (IPropertyTree& node, const char* fileName="stop" );
  29. void _deploy(bool useTempDir);
  30. void copyInstallFiles(IPropertyTree& instanceNode, const char* destPath);
  31. virtual const char* setCompare(const char *filename);
  32. virtual void compareFiles(const char *newFile, const char *oldFile);
  33. private:
  34. virtual bool getInstallPath(const char *filename, StringBuffer& installPath);
  35. // void createDaliConf();
  36. private:
  37. StringBuffer m_daliConf;
  38. };
  39. //---------------------------------------------------------------------------
  40. #endif // DALIDEPLOYMENTENGINE_HPP_INCL