public final class InfluxDBClientImpl extends AbstractInfluxDBClient implements InfluxDBClient
autoCloseables, DEFAULT_DIALECT, gzipInterceptor, healthService, loggingInterceptor, options, retrofit| Constructor and Description |
|---|
InfluxDBClientImpl(InfluxDBClientOptions options) |
| Modifier and Type | Method and Description |
|---|---|
InfluxDBClient |
disableGzip()
Disable Gzip compress for http request body.
|
InfluxDBClient |
enableGzip()
Enable Gzip compress for http requests.
|
AuthorizationsApi |
getAuthorizationsApi()
Get the
Authorization client. |
BucketsApi |
getBucketsApi()
Get the
Bucket client. |
ChecksApi |
getChecksApi()
Get the
Check client. |
DashboardsApi |
getDashboardsApi()
Get the
Dashboard client. |
DeleteApi |
getDeleteApi()
Get the Delete client.
|
LabelsApi |
getLabelsApi()
Get the
Label client. |
LogLevel |
getLogLevel() |
NotificationEndpointsApi |
getNotificationEndpointsApi()
Get the
NotificationEndpoint client. |
NotificationRulesApi |
getNotificationRulesApi()
Get the
NotificationRules client. |
OrganizationsApi |
getOrganizationsApi()
Get the
Organization client. |
QueryApi |
getQueryApi()
Get the Query client.
|
ScraperTargetsApi |
getScraperTargetsApi()
Get the
ScraperTargetResponse client. |
<S> S |
getService(Class<S> service)
Create an implementation of the API endpoints defined by the
service interface. |
SourcesApi |
getSourcesApi()
Get the
Source client. |
TasksApi |
getTasksApi()
Get the
Task client. |
TelegrafsApi |
getTelegrafsApi()
Get the
Telegraf client. |
TemplatesApi |
getTemplatesApi()
Get the
Document client. |
UsersApi |
getUsersApi()
Get the
User client. |
VariablesApi |
getVariablesApi()
Get the
Variable client. |
WriteApi |
getWriteApi()
Get the asynchronous non-blocking Write client.
|
WriteApi |
getWriteApi(WriteOptions writeOptions)
Get the asynchronous non-blocking Write client.
|
WriteApiBlocking |
getWriteApiBlocking()
Get the synchronous blocking Write client.
|
HealthCheck |
health()
Get the health of an instance.
|
boolean |
isGzipEnabled()
Returns whether Gzip compress for http request body is enabled.
|
Boolean |
isOnboardingAllowed()
Check if database has default user, org, bucket created, returns true if not.
|
OnboardingResponse |
onBoarding(OnboardingRequest onboarding)
Post onboarding request, to setup initial user, org and bucket.
|
Ready |
ready()
The readiness of the InfluxDB 2.0.
|
InfluxDBClient |
setLogLevel(LogLevel logLevel)
Set the log level for the request and response information.
|
close, healthexecute, getLogLevel, responseToError, setLogLevelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic InfluxDBClientImpl(@Nonnull InfluxDBClientOptions options)
@Nonnull public QueryApi getQueryApi()
InfluxDBClientgetQueryApi in interface InfluxDBClient@Nonnull public WriteApi getWriteApi()
InfluxDBClientgetWriteApi in interface InfluxDBClient@Nonnull public WriteApi getWriteApi(@Nonnull WriteOptions writeOptions)
InfluxDBClientgetWriteApi in interface InfluxDBClientwriteOptions - the writes configuration@Nonnull public WriteApiBlocking getWriteApiBlocking()
InfluxDBClientgetWriteApiBlocking in interface InfluxDBClient@Nonnull public AuthorizationsApi getAuthorizationsApi()
InfluxDBClientAuthorization client.getAuthorizationsApi in interface InfluxDBClient@Nonnull public BucketsApi getBucketsApi()
InfluxDBClientBucket client.getBucketsApi in interface InfluxDBClient@Nonnull public OrganizationsApi getOrganizationsApi()
InfluxDBClientOrganization client.getOrganizationsApi in interface InfluxDBClient@Nonnull public SourcesApi getSourcesApi()
InfluxDBClientSource client.getSourcesApi in interface InfluxDBClient@Nonnull public TasksApi getTasksApi()
InfluxDBClientTask client.getTasksApi in interface InfluxDBClient@Nonnull public UsersApi getUsersApi()
InfluxDBClientUser client.getUsersApi in interface InfluxDBClient@Nonnull public ScraperTargetsApi getScraperTargetsApi()
InfluxDBClientScraperTargetResponse client.getScraperTargetsApi in interface InfluxDBClient@Nonnull public TelegrafsApi getTelegrafsApi()
InfluxDBClientTelegraf client.getTelegrafsApi in interface InfluxDBClient@Nonnull public LabelsApi getLabelsApi()
InfluxDBClientLabel client.getLabelsApi in interface InfluxDBClient@Nonnull public TemplatesApi getTemplatesApi()
InfluxDBClientDocument client.getTemplatesApi in interface InfluxDBClient@Nonnull public VariablesApi getVariablesApi()
InfluxDBClientVariable client.getVariablesApi in interface InfluxDBClient@Nonnull public DashboardsApi getDashboardsApi()
InfluxDBClientDashboard client.getDashboardsApi in interface InfluxDBClient@Nonnull public ChecksApi getChecksApi()
InfluxDBClientCheck client.getChecksApi in interface InfluxDBClient@Nonnull public NotificationEndpointsApi getNotificationEndpointsApi()
InfluxDBClientNotificationEndpoint client.getNotificationEndpointsApi in interface InfluxDBClient@Nonnull public NotificationRulesApi getNotificationRulesApi()
InfluxDBClientNotificationRules client.getNotificationRulesApi in interface InfluxDBClient@Nonnull public DeleteApi getDeleteApi()
InfluxDBClientgetDeleteApi in interface InfluxDBClient@Nonnull public <S> S getService(@Nonnull Class<S> service)
InfluxDBClientservice interface.
The endpoints are defined in com.influxdb.client.service.
getService in interface InfluxDBClientS - type of serviceservice - service to instantiate@Nonnull public HealthCheck health()
InfluxDBClienthealth in interface InfluxDBClient@Nullable public Ready ready()
InfluxDBClientready in interface InfluxDBClient@Nonnull public OnboardingResponse onBoarding(@Nonnull OnboardingRequest onboarding) throws UnprocessableEntityException
InfluxDBClientonBoarding in interface InfluxDBClientonboarding - to setup defaultsUnprocessableEntityException - when an onboarding has already been completed@Nonnull public Boolean isOnboardingAllowed()
InfluxDBClientisOnboardingAllowed in interface InfluxDBClientBoolean.FALSE if onboarding has already been completed otherwise Boolean.FALSE.@Nonnull public LogLevel getLogLevel()
getLogLevel in interface InfluxDBClientLogLevel that is used for logging requests and responses@Nonnull public InfluxDBClient setLogLevel(@Nonnull LogLevel logLevel)
InfluxDBClientsetLogLevel in interface InfluxDBClientlogLevel - the log level to set.@Nonnull public InfluxDBClient enableGzip()
InfluxDBClientCurrently only the "Write" and "Query" endpoints supports the Gzip compression.
enableGzip in interface InfluxDBClientInfluxDBClient instance to be able to use it in a fluent manner.@Nonnull public InfluxDBClient disableGzip()
InfluxDBClientdisableGzip in interface InfluxDBClientInfluxDBClient instance to be able to use it in a fluent manner.public boolean isGzipEnabled()
InfluxDBClientisGzipEnabled in interface InfluxDBClientCopyright © 2018–2021 InfluxData, Inc.. All rights reserved.