lhotari commented on code in PR #24781:
URL: https://github.com/apache/pulsar/pull/24781#discussion_r2384281651
##########
pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandaloneBuilder.java:
##########
@@ -96,6 +100,31 @@ public PulsarStandaloneBuilder withAdvertisedAddress(String
advertisedAddress) {
return this;
}
+ public PulsarClient buildClient () throws Exception {
+ return PulsarClient.builder()
+ .serviceUrl(pulsarStandalone.getConfig().getBrokerServiceUrl())
+ .build();
+ }
+
+ public PulsarAdmin buildAdmin() throws Exception {
+ return PulsarAdmin.builder()
+
.serviceHttpUrl(pulsarStandalone.getConfig().getWebServiceAddress())
+ .build();
+ }
+
+ private PulsarStandaloneBuilder() throws IOException {
+ pulsarStandalone = new PulsarStandalone();
+ pulsarStandalone.setWipeData(true);
+ pulsarStandalone.setNoFunctionsWorker(true);
+
+ Path tempZkDir = Files.createTempDirectory("zk");
+ Path tempBkDir = Files.createTempDirectory("bk");
Review Comment:
These directories would also be created when it's not desired.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]