-
Notifications
You must be signed in to change notification settings - Fork 48
INTERNAL: Remove public ArcusClient constructor. #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,16 +301,19 @@ protected void initClient(ConnectionFactory cf) throws Exception { | |
if (USE_ZK) { | ||
openFromZK(new CFB(cf)); | ||
} else { | ||
openDirect(cf); | ||
openDirect(new ConnectionFactoryBuilder() | ||
.setOpTimeout(cf.getOperationTimeout()) | ||
.setFailureMode(cf.getFailureMode()) | ||
.setInitialObservers(cf.getInitialObservers())); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
그래서 openDirect에서 |
||
} | ||
} | ||
|
||
protected void openFromZK(ConnectionFactoryBuilder cfb) { | ||
client = ArcusClient.createArcusClient(ZK_ADDRESS, SERVICE_CODE, cfb); | ||
} | ||
|
||
protected void openDirect(ConnectionFactory cf) throws Exception { | ||
client = new ArcusClient(cf, AddrUtil.getAddresses(ARCUS_HOST)); | ||
protected void openDirect(ConnectionFactoryBuilder cfb) throws Exception { | ||
client = ArcusClient.createArcusClient(AddrUtil.getAddresses(ARCUS_HOST), cfb); | ||
} | ||
|
||
@BeforeEach | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name, addrs, cfb
인자를 가지는 API도 제공해야 하지 않는 지 ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아래와 같이 의견이 취합되었습니다.
#764 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oliviarla
위 내용 검토해 주시죠.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zookeeper 주소를 입력받는 createArcusClient 메서드에도 name을 입력받지 않고 있으며 name 필드 자체가 내부적으로 로깅 용도로 사용하는 값이므로, 제 생각에는 name을 입력받는 메서드를 별도로 추가하지 않아도 될 것 같습니다.