]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/runtime/PythonNode.hxx
Salome HOME
Workload manager and attach on cloning.
[modules/yacs.git] / src / runtime / PythonNode.hxx
index a18409bd7eeb5184bee0bb41fa5d938ad552afb7..d13b9570818e208b9c05ff31d687f28b9559cb9b 100644 (file)
@@ -50,7 +50,7 @@ namespace YACS
       Engines::Container_var loadPythonAdapter(InlineNode *reqNode, bool& isInitializeRequested);
       void loadRemoteContext(InlineNode *reqNode, Engines::Container_ptr objContainer, bool isInitializeRequested);
       static std::string GetContainerLog(const std::string& mode, Container *container, const Task *askingTask);
-      bool hasImposedResource()const;
+      virtual bool hasImposedResource()const;
     protected:
       PyObject *_context;
       PyObject *_pyfuncSer;
@@ -91,7 +91,8 @@ namespace YACS
       void imposeResource(const std::string& resource_name,
                           const std::string& container_name) override;
       bool canAcceptImposedResource()override;
-      bool keepContext()const;
+      bool hasImposedResource()const override;
+      bool isUsingPythonCache()const;
       std::string getContainerLog();
       PythonNode* cloneNode(const std::string& name);
       virtual std::string typeName() { return "YACS__ENGINE__PythonNode"; }
@@ -108,7 +109,6 @@ namespace YACS
       static const char SCRIPT_FOR_SERIALIZATION[];
       static const char REMOTE_NAME[];
       static const char DPL_INFO_NAME[];
-      static const char KEEP_CONTEXT_PROPERTY[];
     protected:
       bool _autoSqueeze = false;
       Engines::PyScriptNode_var _pynode;
@@ -140,6 +140,7 @@ namespace YACS
       void imposeResource(const std::string& resource_name,
                           const std::string& container_name) override;
       bool canAcceptImposedResource()override;
+      bool hasImposedResource()const override;
       std::string getContainerLog();
       PyFuncNode* cloneNode(const std::string& name);
       virtual std::string typeName() { return "YACS__ENGINE__PyFuncNode"; }