Package org.apache.pulsar.testclient
Class PerfClientUtils
java.lang.Object
org.apache.pulsar.testclient.PerfClientUtils
Utility for test clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PulsarAdminBuildercreateAdminBuilderFromArguments(PerformanceBaseArguments arguments, String adminUrl) static ClientBuilderstatic voidexit(int code) static voidprintJVMInformation(org.slf4j.Logger log) Print useful JVM information, you need this information in order to be able to compare the results of executions in different environments.static voidsetExitProcedure(Consumer<Integer> exitProcedure)
-
Constructor Details
-
PerfClientUtils
public PerfClientUtils()
-
-
Method Details
-
setExitProcedure
-
exit
public static void exit(int code) -
printJVMInformation
public static void printJVMInformation(org.slf4j.Logger log) Print useful JVM information, you need this information in order to be able to compare the results of executions in different environments.- Parameters:
log-
-
createClientBuilderFromArguments
public static ClientBuilder createClientBuilderFromArguments(PerformanceBaseArguments arguments) throws PulsarClientException.UnsupportedAuthenticationException -
createAdminBuilderFromArguments
public static PulsarAdminBuilder createAdminBuilderFromArguments(PerformanceBaseArguments arguments, String adminUrl) throws PulsarClientException.UnsupportedAuthenticationException
-