Consider separating client construction and cluster connection

オープン
#353 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

HazelcastClient コンストラクター、提案されている connect() エントリーポイント、add_lifecycle_listener(...) から始めます。現在、構築処理がどのようにクラスターに到達しているかを追跡し、接続前にリスナーを割り当てられるようにするために必要なライフサイクルの変更を特定します。クライアントの構築とクラスターへの接続が分離され、意図された使い方がサポートされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Priority: Low Source: Internal Type: Enhancement

Currently HazelcastClient tries to connect to the Hazelcast cluster during construction. This is unexpected and probably something we shouldn't do in the constructor.

It would be better to separate client instance construction and cluster connection steps. Something along the lines of

hz = HazelcastClient()
hz.connect()

That also gives us the opportunity to assign listeners, etc. after creating the client instance:

hz = HazelcastClient()
hz.add_lifecycle_listener( ... )
# ...
hz.connect()
主要言語
Python
スター
115
フォーク
78
平均マージ
2日 23時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hazelcast/hazelcast-python-client のほかの issue

hazelcast/hazelcast-python-client の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。