@Test void loadFromConnectionUnknownUnit() { Assertions.assertThatThrownBy(() -> InfluxDBClientFactory.create("http: "readTimeout=1y&writeTimeout=3s&connectTimeout=2m&logLevel=HEADERS&token=my-token&bucket=my-bucket&org=my-org")) .hasMessage("unknown unit for '1y'") .isInstanceOf(InfluxException.class); }
@Nonnull public static InfluxDBClient create() { InfluxDBClientOptions options = InfluxDBClientOptions.builder() .loadProperties() .build(); return create(options); }
InfluxDBClientFactory { @Nonnull public static InfluxDBClient create() { InfluxDBClientOptions options = InfluxDBClientOptions.builder() .loadProperties() .build(); return create(options); } }
InfluxDBClientFactory { @Nonnull public static InfluxDBClient create() { InfluxDBClientOptions options = InfluxDBClientOptions.builder() .loadProperties() .build(); return create(options); } private  InfluxDBClientFactory(); }
InfluxDBClientFactory { @Nonnull public static InfluxDBClient create() { InfluxDBClientOptions options = InfluxDBClientOptions.builder() .loadProperties() .build(); return create(options); } private  InfluxDBClientFactory(); @Nonnull static InfluxDBClient create(); @Nonnull static InfluxDBClient create(@Nonnull final String connectionString); @Nonnull static InfluxDBClient create(@Nonnull final String url,
                                        @Nonnull final String username,
                                        @Nonnull final char[] password); @Nonnull static InfluxDBClient create(@Nonnull final String url, @Nonnull final char[] token); @Nonnull static InfluxDBClient create(@Nonnull final String url,
                                        @Nonnull final char[] token,
                                        @Nullable final String org); @Nonnull static InfluxDBClient create(@Nonnull final String url,
                                        @Nonnull final char[] token,
                                        @Nullable final String org,
                                        @Nullable final String bucket); @Nonnull static InfluxDBClient createV1(@Nonnull final String url,
                                          @Nullable final String username,
                                          final char[] password,
                                          @Nonnull final String database,
                                          @Nullable final String retentionPolicy); @Nonnull static InfluxDBClient create(@Nonnull final InfluxDBClientOptions options); @Nonnull static OnboardingResponse onBoarding(@Nonnull final String url,
                                                @Nonnull final String username,
                                                @Nonnull final String password,
                                                @Nonnull final String org,
                                                @Nonnull final String bucket); @Nonnull static OnboardingResponse onBoarding(@Nonnull final String url,
                                                @Nonnull final OnboardingRequest onboarding); }
InfluxDBClientFactory { @Nonnull public static InfluxDBClient create() { InfluxDBClientOptions options = InfluxDBClientOptions.builder() .loadProperties() .build(); return create(options); } private  InfluxDBClientFactory(); @Nonnull static InfluxDBClient create(); @Nonnull static InfluxDBClient create(@Nonnull final String connectionString); @Nonnull static InfluxDBClient create(@Nonnull final String url,
                                        @Nonnull final String username,
                                        @Nonnull final char[] password); @Nonnull static InfluxDBClient create(@Nonnull final String url, @Nonnull final char[] token); @Nonnull static InfluxDBClient create(@Nonnull final String url,
                                        @Nonnull final char[] token,
                                        @Nullable final String org); @Nonnull static InfluxDBClient create(@Nonnull final String url,
                                        @Nonnull final char[] token,
                                        @Nullable final String org,
                                        @Nullable final String bucket); @Nonnull static InfluxDBClient createV1(@Nonnull final String url,
                                          @Nullable final String username,
                                          final char[] password,
                                          @Nonnull final String database,
                                          @Nullable final String retentionPolicy); @Nonnull static InfluxDBClient create(@Nonnull final InfluxDBClientOptions options); @Nonnull static OnboardingResponse onBoarding(@Nonnull final String url,
                                                @Nonnull final String username,
                                                @Nonnull final String password,
                                                @Nonnull final String org,
                                                @Nonnull final String bucket); @Nonnull static OnboardingResponse onBoarding(@Nonnull final String url,
                                                @Nonnull final OnboardingRequest onboarding);  }