public static class WavefrontClient.Builder extends Object
| Constructor and Description |
|---|
Builder(String proxyServer)
Create a new WavefrontClient.Builder
|
Builder(String server,
String token)
Create a new WavefrontClient.Builder
|
| Modifier and Type | Method and Description |
|---|---|
WavefrontClient.Builder |
batchSize(int batchSize)
Set batch size to be reported during every flush.
|
WavefrontClient |
build()
Creates a new client that flushes directly to a Proxy or Wavefront service.
|
WavefrontClient.Builder |
flushIntervalSeconds(int flushIntervalSeconds)
Set interval at which you want to flush points to Wavefront cluster.
|
WavefrontClient.Builder |
maxQueueSize(int maxQueueSize)
Set max queue size of in-memory buffer.
|
WavefrontClient.Builder |
messageSizeBytes(int bytes)
Set max message size, such that each batch is reported as one or more messages where no
message exceeds the specified size in bytes.
|
public Builder(String server, @Nullable String token)
server - A server URL of the form "https://clusterName.wavefront.com" or "http://internal.proxy.com:port"token - A valid API token with direct ingestion permissionspublic Builder(String proxyServer)
proxyServer - A server URL of the the form "http://internal.proxy.com:port"public WavefrontClient.Builder maxQueueSize(int maxQueueSize)
maxQueueSize - Max queue size of in-memory bufferthispublic WavefrontClient.Builder batchSize(int batchSize)
batchSize - Batch size to be reported during every flush.thispublic WavefrontClient.Builder flushIntervalSeconds(int flushIntervalSeconds)
flushIntervalSeconds - Interval at which you want to flush points to Wavefront clusterthispublic WavefrontClient.Builder messageSizeBytes(int bytes)
Integer.MAX_VALUE.bytes - Maximum number of bytes of data that each reported message contains.thispublic WavefrontClient build()
WavefrontClientCopyright © 2020. All rights reserved.