public class AgentAdminConnector extends Object implements IAgentAdminConnector
Constructor and Description |
---|
AgentAdminConnector(long connectTimeout)
Constructor of the object that is used for establishing connections
with the administration server, allows specifying connection timeout
|
AgentAdminConnector(Timer timer,
Executor executor,
long connectTimeout)
Constructor of the object that is used for establishing connections
with the administration server, with the option to redefine the timer and the
executor
|
Modifier and Type | Method and Description |
---|---|
void |
close(IAgentAdminConnection connection)
Closes connection with the administration server
|
IAgentAdminConnection |
connect(String host,
int port)
Establishes connection with the administration server
|
void |
shutdown()
Shuts down the object that is used for establishing connections,
and releases the resources.
|
public AgentAdminConnector(long connectTimeout)
connectTimeout
- timeout for establishing connections (in milliseconds)public AgentAdminConnector(Timer timer, Executor executor, long connectTimeout)
timer
- timerexecutor
- executorconnectTimeout
- timeout for establishing connections (in milliseconds)public IAgentAdminConnection connect(String host, int port)
IAgentAdminConnector
connect
in interface IAgentAdminConnector
host
- name or IP address of the computer that is running the administration serverport
- administration server portpublic void close(IAgentAdminConnection connection)
IAgentAdminConnector
close
in interface IAgentAdminConnector
connection
- connection with the administration serverpublic void shutdown()
IAgentAdminConnector
IllegalArgumentException
shutdown
in interface IAgentAdminConnector
Copyright © '1C' 1996-2012