private static int getWsPort(
      final EthStatsConnectOptions ethStatsConnectOptions, final boolean isSSL) {
    if (ethStatsConnectOptions.getPort() >= 0) {
      return ethStatsConnectOptions.getPort();
    }
    return isSSL ? 443 : 80;
  }
Instantiates a new EthStatsService.

@param ethStatsConnectOptions the ethstats options
@param blockchainQueries the blockchain queries
@param protocolManager the protocol manager
@param transactionPool the transaction pool
@param miningCoordinator the mining coordinator
@param syncState the SyncState
@param vertx the vertx instance
@param clientVersion the client version
@param genesisConfigOptions the genesis config options
@param p2PNetwork the p2p network
ethereum/ethstats/src/main/java/org/hyperledger/besu/ethstats/EthStatsService.java