minor
This commit is contained in:
parent
50c5ad8576
commit
17af20ab50
|
@ -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>
|
||||||
|
|
|
@ -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.*;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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");
|
||||||
|
}
|
||||||
|
}
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue