Package org.kairosdb.client
Class TelnetClient
- java.lang.Object
-
- org.kairosdb.client.TelnetClient
-
public class TelnetClient extends Object
Communicates with KairosDB using the Telnet protocol. Only pushing of metrics is supported. Querying must be done using the HTTP client. The socket is opened in the constructor and left open until the close() method is called. Note that no response is returned. This allows data to flow more quickly. If you need to guarantee arrival of metrics then use the HTTP client.
-
-
Constructor Summary
Constructors Constructor Description TelnetClient(String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidpushMetrics(MetricBuilder builder)Deprecated.As of KairosDB 1.0, use putMetrics.voidputMetrics(MetricBuilder builder)voidshutdown()Closes the socket.
-
-
-
Constructor Detail
-
TelnetClient
public TelnetClient(String host, int port) throws IOException
- Throws:
IOException
-
-
Method Detail
-
pushMetrics
@Deprecated public void pushMetrics(MetricBuilder builder)
Deprecated.As of KairosDB 1.0, use putMetrics. PutMetrics uses putm rather than put. Sends metrics from the builder to the Kairos server.- Parameters:
builder- metrics builder
-
putMetrics
public void putMetrics(MetricBuilder builder)
-
shutdown
public void shutdown() throws IOExceptionCloses the socket.- Throws:
IOException- if the socket could not be closed.
-
-