public class TransportClient extends Object
CommandClient| Constructor and Description |
|---|
TransportClient(String p_host,
int p_port)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources.
|
static void |
closeQuietly(TransportClient p_client)
Release resources silently.
|
boolean |
isValid() |
String |
sendCommand(String p_command)
Sends command
|
public TransportClient(String p_host, int p_port) throws IOException
p_host - hostp_port - portIOException - throws if unable to connect by specified host and portpublic String sendCommand(String p_command) throws IOException
p_command - command as jsonIOException - if unable to execute commandpublic void close()
public static void closeQuietly(TransportClient p_client)
p_client - clientpublic boolean isValid()
Copyright © 2018. All rights reserved.