def setup(self): u"""実行するためのオブジェクトなどを全て初期化.""" self.setup_client() self.setup_server() self.setup_plugin() self.setup_prompt() PluginApplication.setup(self)
def finish(self): u"""実行の後始末を行う.""" self.server.server_close() PluginApplication.finish(self)
def run(self): u"""実行を開始する.""" self.client.start() self.server.serve_forever() PluginApplication.run(self)
def terminate(self): u"""アプリケーションを終了する.""" PluginApplication.terminate(self) self.client.terminate()
def __init__(self): PluginApplication.__init__(self, CONFIG_FILE, PLUGIN_DIR) self.client = None self.server = None
def finish(self): u"""実行の後始末を行う.""" self.monitor.terminate() PluginApplication.finish(self)
def run(self): u"""実行を開始する.""" self.monitor.start() PluginApplication.run(self)
def setup(self): u"""前準備.""" self.setup_monitor() self.setup_plugin() self.setup_prompt() PluginApplication.setup(self)
def __init__(self): PluginApplication.__init__(self, CONFIG_FILE, PLUGIN_DIR) self.monitor = None