Class 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.
    • 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
      • shutdown

        public void shutdown()
                      throws IOException
        Closes the socket.
        Throws:
        IOException - if the socket could not be closed.