This commit is contained in:
romanman 2014-05-22 15:30:38 +03:00
parent 50c5ad8576
commit 17af20ab50
5 changed files with 18 additions and 9 deletions

View File

@ -10,7 +10,7 @@
<!-- * To deploy all the classes and dependencies to one jar, <!-- * To deploy all the classes and dependencies to one jar,
* that's one option to pack stand alone. * that's one option to pack stand alone.
mvn clean package dependency:copy-dependencies mvn clean package dependency:copy-dependencies -Dmaven.test.skip=true
--> -->
<properties> <properties>

View File

@ -1,10 +1,7 @@
package org.ethereum.net.peerdiscovery; package org.ethereum.net.peerdiscovery;
import org.ethereum.manager.MainData;
import org.ethereum.net.client.PeerData; import org.ethereum.net.client.PeerData;
import samples.threadpool.MyMonitorThread;
import samples.threadpool.RejectedExecutionHandlerImpl;
import java.util.List; import java.util.List;
import java.util.concurrent.*; import java.util.concurrent.*;

View File

@ -9,10 +9,6 @@ import org.ethereum.gui.PeerListener;
import org.ethereum.manager.MainData; import org.ethereum.manager.MainData;
import org.ethereum.net.client.EthereumFrameDecoder; import org.ethereum.net.client.EthereumFrameDecoder;
import org.ethereum.net.client.PeerData; import org.ethereum.net.client.PeerData;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -0,0 +1,17 @@
package org.ethereum.net.peerdiscovery;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* Created on: 22/05/2014 10:31
*/
public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler {
@Override
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
System.out.println(r.toString() + " is rejected");
}
}

View File

@ -1,6 +1,5 @@
package org.ethereum.net.peerdiscovery; package org.ethereum.net.peerdiscovery;
import org.ethereum.manager.MainData;
import org.ethereum.net.client.PeerData; import org.ethereum.net.client.PeerData;
import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.ThreadPoolExecutor;