use of net.i2p.util.I2PThread in project i2p.i2p by i2p.
the class RouterTimestamper method startTimestamper.
public void startTimestamper() {
if (_disabled || _initialized)
return;
_timestamperThread = new I2PThread(this, "Timestamper", _daemon);
_timestamperThread.setPriority(I2PThread.MIN_PRIORITY);
_isRunning = true;
_timestamperThread.start();
_context.addShutdownTask(new Shutdown());
}
use of net.i2p.util.I2PThread in project i2p.i2p by i2p.
the class TestSwarm method connectWithPeers.
private void connectWithPeers() {
if (_peerDestFiles != null) {
for (int i = 0; i < _peerDestFiles.length; i++) {
try {
FileInputStream fin = new FileInputStream(_peerDestFiles[i]);
Destination dest = new Destination();
dest.readBytes(fin);
I2PThread flooder = new I2PThread(new Flooder(dest), "Flooder+" + dest.calculateHash().toBase64().substring(0, 4));
flooder.start();
} catch (Exception e) {
_log.error("Unable to read the peer from " + _peerDestFiles[i], e);
}
}
}
}
use of net.i2p.util.I2PThread in project i2p.i2p by i2p.
the class EstablishmentManager method startup.
public synchronized void startup() {
_alive = true;
I2PThread t = new I2PThread(new Establisher(), "UDP Establisher", true);
t.start();
}
use of net.i2p.util.I2PThread in project i2p.i2p by i2p.
the class MessageReceiver method startup.
public synchronized void startup() {
_alive = true;
for (int i = 0; i < _threadCount; i++) {
I2PThread t = new I2PThread(new Runner(), "UDP message receiver " + (i + 1) + '/' + _threadCount, true);
t.start();
}
}
use of net.i2p.util.I2PThread in project i2p.i2p by i2p.
the class OutboundRefiller method startup.
public void startup() {
_alive = true;
I2PThread t = new I2PThread(this, "UDP outbound refiller", true);
t.start();
}
Aggregations