Esempio n. 1
0
 @Start
 public void startJmdnsGroup() throws IOException {
   super.startRestGroup();
   jmdns = new ArrayList<JmDnsComponent>();
   thread = new Thread(this);
   updateDico();
   alive = true;
   thread.start();
 }
Esempio n. 2
0
 @Stop
 public void stopJmdnsGroup() {
   alive = false;
   thread.interrupt();
   for (JmDnsComponent _jmdns : jmdns) {
     _jmdns.close();
   }
   jmdns = null;
   super.stopRestGroup();
 }