public interface MonitoringConsoleRuntime
MonitoringConsole when creating it using the MonitoringConsoleFactory.
The provided implementation is used by the monitoring implementation to run its low level work of collecting metrics
and connecting instances to a network of multiple data senders and a central data receiver.| Modifier and Type | Method and Description |
|---|---|
GroupDataRepository |
getGroupData() |
MonitoringConsolePageConfig |
getPageConfig() |
MonitoringConsoleWatchConfig |
getWatchConfig() |
boolean |
receive(Consumer<byte[]> receiver)
Registers the receiver
Consumer for messages when those are received. |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable task,
long initialDelay,
long period,
TimeUnit unit)
Asynchronously runs the task as done by
ScheduledExecutorService.scheduleAtFixedRate(Runnable, long, long, TimeUnit). |
boolean |
send(byte[] snapshot)
Sends a "package" of monitoring data from a sender (secondary instance) to the receiver (primary instance).
|
ScheduledFuture<?> scheduleAtFixedRate(Runnable task, long initialDelay, long period, TimeUnit unit)
ScheduledExecutorService.scheduleAtFixedRate(Runnable, long, long, TimeUnit).boolean send(byte[] snapshot)
snapshot - the package databoolean receive(Consumer<byte[]> receiver)
Consumer for messages when those are received.receiver - the callback to call with the received message when a message is received by the underlying
implementation.MonitoringConsoleWatchConfig getWatchConfig()
MonitoringConsolePageConfig getPageConfig()
GroupDataRepository getGroupData()
Copyright © 2020. All rights reserved.