public class CommandClient extends Object
| Constructor and Description |
|---|
CommandClient(String host,
int port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources used by client.
|
static void |
closeQuietly(CommandClient p_client)
Release resources quietly.
|
int |
getNameForLogger() |
boolean |
isInUse() |
boolean |
isValid() |
LicenseStatusOpResponse |
licenseStatus() |
CommandResponse |
send(Command p_command)
Executes command.
|
void |
setNameForLogger(int nameForLogger) |
public CommandClient(String host, int port) throws IOException
host - hostport - portIOException - throws if unable to connect by specified host and portpublic CommandResponse send(Command p_command)
p_command - command to executepublic boolean isInUse()
public void close()
public static void closeQuietly(CommandClient p_client)
p_client - clientpublic LicenseStatusOpResponse licenseStatus()
public boolean isValid()
public int getNameForLogger()
public void setNameForLogger(int nameForLogger)
Copyright © 2018. All rights reserved.