public abstract class AbstractClient extends Object implements Client
| Modifier and Type | Method and Description |
|---|---|
RollupResponse |
createRollup(RollupBuilder builder) |
Response |
delete(QueryBuilder builder)
Deletes data in KairosDB using the query built by the builder.
|
protected abstract org.kairosdb.client.ClientResponse |
delete(String url) |
Response |
deleteMetric(String name)
Deletes a metric.
|
Response |
deleteRollup(String id) |
Class |
getDataPointValueClass(String groupType)
Returns the data point value class for the given group type or null if one is not registered for the group type
|
GetResponse |
getMetricNames()
Returns a list of all metric names.
|
RollupResponse |
getRollupTask(String id) |
RollupResponse |
getRollupTasks() |
GetResponse |
getStatus()
Returns status of Kairos Instance.
|
GetResponse |
getTagNames()
Returns a list of all tag names.
|
GetResponse |
getTagValues()
Returns a list of all tag values.
|
protected abstract org.kairosdb.client.ClientResponse |
postCompressedData(String json,
String url) |
protected abstract org.kairosdb.client.ClientResponse |
postData(String json,
String url) |
Response |
pushMetrics(MetricBuilder builder)
Sends metrics from the builder to the KairosDB server.
|
QueryResponse |
query(QueryBuilder builder)
Queries KairosDB using the query built by the builder.
|
protected abstract org.kairosdb.client.ClientResponse |
queryData(String url) |
QueryTagResponse |
queryTag(QueryTagBuilder builder)
Queries KairosDB tags using the query built by the builder.
|
void |
registerCustomDataType(String groupType,
Class dataPointClass)
Registers a new custom data type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRetryCount, shutdownpublic GetResponse getMetricNames() throws IOException
ClientgetMetricNames in interface ClientIOException - if the JSON returned could not be properly processedpublic GetResponse getTagNames() throws IOException
ClientgetTagNames in interface ClientIOException - if the JSON returned could not be properly processedpublic GetResponse getTagValues() throws IOException
ClientgetTagValues in interface ClientIOException - if the JSON returned could not be properly processedpublic GetResponse getStatus() throws IOException
ClientgetStatus in interface ClientIOException - if the JSON returned could not be properly processedpublic QueryTagResponse queryTag(QueryTagBuilder builder) throws IOException
ClientqueryTag in interface Clientbuilder - query tag builderIOException - problem occurred querying the serverpublic QueryResponse query(QueryBuilder builder) throws IOException
Clientquery in interface Clientbuilder - query builderIOException - problem occurred querying the serverpublic RollupResponse createRollup(RollupBuilder builder) throws IOException
createRollup in interface ClientIOExceptionpublic RollupResponse getRollupTask(String id) throws IOException
getRollupTask in interface ClientIOExceptionpublic RollupResponse getRollupTasks() throws IOException
getRollupTasks in interface ClientIOExceptionpublic Response deleteRollup(String id) throws IOException
deleteRollup in interface ClientIOExceptionpublic Response pushMetrics(MetricBuilder builder) throws IOException
ClientpushMetrics in interface Clientbuilder - metrics builderIOException - problem occurred sending to the serverpublic Response deleteMetric(String name) throws IOException
ClientdeleteMetric in interface Clientname - the metric to deleteIOException - problem occurred sending to the serverpublic Response delete(QueryBuilder builder) throws IOException
Clientdelete in interface Clientbuilder - query builderIOException - problem occurred querying the serverpublic void registerCustomDataType(String groupType, Class dataPointClass)
ClientregisterCustomDataType in interface ClientgroupType - type used to deserialize the json on the clientdataPointClass - class that is the value of a data pointpublic Class getDataPointValueClass(String groupType)
ClientgetDataPointValueClass in interface ClientgroupType - group typeprotected abstract org.kairosdb.client.ClientResponse postData(String json, String url) throws IOException
IOExceptionprotected abstract org.kairosdb.client.ClientResponse postCompressedData(String json, String url) throws IOException
IOExceptionprotected abstract org.kairosdb.client.ClientResponse queryData(String url) throws IOException
IOExceptionprotected abstract org.kairosdb.client.ClientResponse delete(String url) throws IOException
IOExceptionCopyright © 2018. All rights reserved.