예제 #1
0
 private void startup(int port) {
   if (_listener == null) {
     _listener = new AdminListener(_context, port);
     I2PThread t = new I2PThread(_listener);
     t.setName("Admin Listener:" + port);
     t.setDaemon(true);
     // t.setPriority(Thread.MIN_PRIORITY);
     t.start();
   } else {
     _listener.setPort(port);
     _listener.restart();
   }
 }
예제 #2
0
 public void shutdown() {
   if (_listener != null) {
     _log.info("Shutting down admin listener");
     _listener.shutdown();
     _listener = null;
   }
 }