Coverage Summary for Class: EthereumListenerAdapter (org.ethereum.listener)

Class Class, % Method, % Line, %
EthereumListenerAdapter 100% (1/1) 6.7% (1/15) 6.7% (1/15)


1 /* 2  * This file is part of RskJ 3  * Copyright (C) 2017 RSK Labs Ltd. 4  * (derived from ethereumJ library, Copyright (c) 2016 <ether.camp>) 5  * 6  * This program is free software: you can redistribute it and/or modify 7  * it under the terms of the GNU Lesser General Public License as published by 8  * the Free Software Foundation, either version 3 of the License, or 9  * (at your option) any later version. 10  * 11  * This program is distributed in the hope that it will be useful, 12  * but WITHOUT ANY WARRANTY; without even the implied warranty of 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14  * GNU Lesser General Public License for more details. 15  * 16  * You should have received a copy of the GNU Lesser General Public License 17  * along with this program. If not, see <http://www.gnu.org/licenses/>. 18  */ 19  20 package org.ethereum.listener; 21  22 import org.ethereum.core.Block; 23 import org.ethereum.core.Transaction; 24 import org.ethereum.core.TransactionPool; 25 import org.ethereum.core.TransactionReceipt; 26 import org.ethereum.net.eth.message.StatusMessage; 27 import org.ethereum.net.message.Message; 28 import org.ethereum.net.p2p.HelloMessage; 29 import org.ethereum.net.rlpx.Node; 30 import org.ethereum.net.server.Channel; 31  32 import java.util.List; 33  34 /** 35  * @author Roman Mandeleil 36  * @since 08.08.2014 37  */ 38 public class EthereumListenerAdapter implements EthereumListener { 39  40  @Override 41  public void trace(String output) { 42  } 43  44  @Override 45  public void onBlock(Block block, List<TransactionReceipt> receipts) { 46  } 47  48  @Override 49  public void onBestBlock(Block block, List<TransactionReceipt> receipts) { 50  } 51  52  @Override 53  public void onRecvMessage(Channel channel, Message message) { 54  } 55  56  @Override 57  public void onPeerDisconnect(String host, long port) { 58  } 59  60  @Override 61  public void onPendingTransactionsReceived(List<Transaction> transactions) { 62  } 63  64  @Override 65  public void onTransactionPoolChanged(TransactionPool transactionPool) { 66  } 67  68  @Override 69  public void onHandShakePeer(Channel channel, HelloMessage helloMessage) { 70  71  } 72  73  @Override 74  public void onNoConnections() { 75  76  } 77  78  @Override 79  public void onNodeDiscovered(Node node) { 80  81  } 82  83  @Override 84  public void onEthStatusUpdated(Channel channel, StatusMessage statusMessage) { 85  86  } 87  88  @Override 89  public void onPeerAddedToSyncPool(Channel peer) { 90  91  } 92  93  @Override 94  public void onLongSyncDone() { 95  96  } 97  98  @Override 99  public void onLongSyncStarted() { 100  101  } 102 }