コード例 #1
0
ファイル: bank_client.py プロジェクト: Bobfrat/coi-services
    def on_start(self):

        container_name = self.CFG.get("kill_container", None)

        run_client(self.container, )

        if container_name:
            cc_client = ContainerAgentProcessClient(node=self.container.node, process=self, name=container_name)
            cc_client.stop()
コード例 #2
0
    def on_start(self):

        container_name = self.CFG.get("kill_container", None)

        run_client(self.container, )

        if container_name:
            cc_client = ContainerAgentProcessClient(node=self.container.node, process=self, name=container_name)
            cc_client.stop()
コード例 #3
0
ファイル: hello_client.py プロジェクト: daf/pyon
    def on_start(self):

        text = self.CFG.get("text", 'mytext 123')
        actor_id = self.CFG.get("actor_id", 'anonymous')
        container_name = self.CFG.get("kill_container", None)

        hello_client(self.container, actor_id, text )

        if container_name:
            cc_client = ContainerAgentProcessClient(node=self.container.node, process=self, name=container_name)
            cc_client.stop()
コード例 #4
0
    def on_start(self):

        text = self.CFG.get("text", 'mytext 123')
        actor_id = self.CFG.get("actor_id", 'anonymous')
        container_name = self.CFG.get("kill_container", None)

        hello_client(self.container, actor_id, text)

        if container_name:
            cc_client = ContainerAgentProcessClient(process=self,
                                                    name=container_name)
            cc_client.stop()