public interface ListensToSyslogMessages extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default void |
addSyslogConnectionListener(java.lang.Runnable handler)
Adds a new log broadcasting connection handler.
|
default void |
addSyslogDisconnectionListener(java.lang.Runnable handler)
Adds a new log broadcasting disconnection handler.
|
default void |
addSyslogErrorsListener(java.util.function.Consumer<java.lang.Throwable> handler)
Adds a new log broadcasting errors handler.
|
default void |
addSyslogMessagesListener(java.util.function.Consumer<java.lang.String> handler)
Adds a new log messages broadcasting handler.
|
StringWebSocketClient |
getSyslogClient() |
default void |
removeAllSyslogListeners()
Removes all existing syslog handlers.
|
default void |
startSyslogBroadcast()
Start syslog messages broadcast via web socket.
|
default void |
startSyslogBroadcast(java.lang.String host)
Start syslog messages broadcast via web socket.
|
default void |
startSyslogBroadcast(java.lang.String host,
int port)
Start syslog messages broadcast via web socket.
|
default void |
stopSyslogBroadcast()
Stops syslog messages broadcast via web socket.
|
execute, execute
StringWebSocketClient getSyslogClient()
default void startSyslogBroadcast()
default void startSyslogBroadcast(java.lang.String host)
host
- the name of the host where Appium server is runningdefault void startSyslogBroadcast(java.lang.String host, int port)
host
- the name of the host where Appium server is runningport
- the port of the host where Appium server is runningdefault void addSyslogMessagesListener(java.util.function.Consumer<java.lang.String> handler)
handler
- a function, which accepts a single argument, which is the actual log messagedefault void addSyslogErrorsListener(java.util.function.Consumer<java.lang.Throwable> handler)
handler
- a function, which accepts a single argument, which is the actual exception instancedefault void addSyslogConnectionListener(java.lang.Runnable handler)
handler
- a function, which is executed as soon as the client is successfully
connected to the web socketdefault void addSyslogDisconnectionListener(java.lang.Runnable handler)
handler
- a function, which is executed as soon as the client is successfully
disconnected from the web socketdefault void removeAllSyslogListeners()
default void stopSyslogBroadcast()