public class TelnetClient extends Object
Constructor and Description |
---|
TelnetClient(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
pushMetrics(MetricBuilder builder)
Sends metrics from the builder to the Kairos server.
|
void |
shutdown()
Closes the socket.
|
public TelnetClient(String host, int port) throws IOException
IOException
public void pushMetrics(MetricBuilder builder)
builder
- metrics builderpublic void shutdown() throws IOException
IOException
- if the socket could not be closed.Copyright © 2014. All rights reserved.