| Modifier and Type | Class and Description |
|---|---|
class |
ApiConnectionException
Exception thrown if the Api experiences a connection problem
|
| Modifier and Type | Method and Description |
|---|---|
void |
ResultListener.error(MikrotikApiException ex)
called if the command associated with this listener experiences an error
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
ApiConnection.cancel(String tag)
cancel a command
|
static ApiConnection |
ApiConnection.connect(SocketFactory fact,
String host,
int port,
int timeout)
Create a new API connection to the give device on the supplied port using
the supplied socket factory to create the socket.
|
static ApiConnection |
ApiConnection.connect(String host)
Create a new API connection to the give device on the default API port.
|
abstract List<Map<String,String>> |
ApiConnection.execute(String cmd)
execute a command and return a list of results.
|
abstract String |
ApiConnection.execute(String cmd,
ResultListener lis)
execute a command and attach a result listener to receive it's results.
|
abstract void |
ApiConnection.login(String username,
String password)
Log in to the remote router.
|
abstract void |
ApiConnection.setTimeout(int timeout)
set the command timeout.
|
Copyright © 2018. All rights reserved.