tuweni / org.apache.tuweni.ethstats / EthStatsServerController

EthStatsServerController

interface EthStatsServerController (source)

Controller receiving information of all clients connected to the ethstats server.

Functions

readBlock

Reads block information from the peer.

open fun readBlock(remoteAddress: String, id: String, block: BlockStats): Unit

readDisconnect

Handles the disconnection of the peer.

open fun readDisconnect(remoteAddress: String, id: String): Unit

readLatency

Reads latency from the peer to the server, in milliseconds.

open fun readLatency(remoteAddress: String, id: String, latency: Long): Unit

readNodeInfo

Reads node information. This is sent upon connection from the peer.

open fun readNodeInfo(remoteAddress: String, id: String, nodeInfo: NodeInfo): Unit

readNodeStats

Reads node statistics.

open fun readNodeStats(remoteAddress: String, id: String, nodeStats: NodeStats): Unit

readPendingTx

Reads the number of pending transactions from the peer

open fun readPendingTx(remoteAddress: String, id: String, pendingTx: Long): Unit

Inheritors

CrawlerEthstatsController

class CrawlerEthstatsController : EthStatsServerController